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 for module 'list-react-files' #16

Open
mozgbrasil opened this issue Jul 5, 2021 · 2 comments
Open

Comments

@mozgbrasil
Copy link

Good afternoon

Hello my friend

I tried to use your library in react project and the error is being returned

Could not find a declaration file for module 'list-react-files'

See the project at

https://brown-marlin-dwpxtu5z.ws-us10.gitpod.io/

Captura de tela de 2021-07-05 14-38-36

@brunosana
Copy link

Same Problem!

@stifskere
Copy link

Add a declaration for the library in your globals.d.ts file if you don't have one create one in your src folder

declare module 'list-react-files' {
    function listReactFiles(cwd: string): Promise<Array<string>>
}

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

3 participants