Skip to content

Could not find a declaration file for module 'danfojs/src/index'. (typescript missing type definition) #216

@halflings

Description

@halflings

Describe the bug
The Typescript type definition is somehow not found when I import the module.

To Reproduce
I import danfojs (for web) as suggested in the React example, and I get this error:

Could not find a declaration file for module 'danfojs/src/index'.
'[my src directory]/node_modules/danfojs/src/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/danfojs if it exists or add a new declaration (.d.ts) file containing declare module 'danfojs/src/index'; TS7016

1 | import * as dfd from "danfojs/src/index";

Expected behavior
Expected the import to run fine, and type information to be available.

Additional context
Want to use danfojs from a react/typescript-based web app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions