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

Unable to find declaration file for module 'react-axios' #43

Open
kiritoxjf opened this issue Jan 5, 2022 · 3 comments
Open

Unable to find declaration file for module 'react-axios' #43

kiritoxjf opened this issue Jan 5, 2022 · 3 comments

Comments

@kiritoxjf
Copy link

kiritoxjf commented Jan 5, 2022

After I install the four modules, Ts show me the error when I want to import the Get component from react-axios
avatar

@krivochenko
Copy link

Hi! I have the same issue. @kiritoxjf did you find solution?

@kiritoxjf
Copy link
Author

Hi! I have the same issue. @kiritoxjf did you find solution?

I finished the development using the 'axios' package instead.

@InsightStevenGreen
Copy link

I'm taking the assumption that the types are missing, as vscode show's errors but the components work

'Could not find a declaration file for module 'react-axios'. '/Users/stevengreen/Documents/Development/Learning/react-ts-form-components/node_modules/react-axios/lib/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/react-axios if it exists or add a new declaration (.d.ts) file containing declare module 'react-axios';ts(7016)

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