Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find a declaration file #29

Closed
guopuu opened this issue Jan 27, 2021 · 1 comment
Closed

Could not find a declaration file #29

guopuu opened this issue Jan 27, 2021 · 1 comment

Comments

@guopuu
Copy link

guopuu commented Jan 27, 2021

run npm install ...

import Tree from '@naisutech/react-tree'

then error :

Could not find a declaration file for module '@naisutech/react-tree'. 'd:/myWork/my_tcb_client/TCBWebClient/node_modules/@naisutech/react-tree/build/Tree.js' implicitly has an 'any' type.
Try npm install @types/naisutech__react-tree if it exists or add a new declaration (.d.ts) file containing declare module '@naisutech/react-tree';ts(7016)

@ortonomy
Copy link
Contributor

Are you using typescript? This library doesn't support or use Typescript. feel free to write your own types.

@ortonomy ortonomy reopened this Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants