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 'mctext-react'. #3

Open
iwillreku3206 opened this issue Dec 25, 2020 · 1 comment · May be fixed by #4
Open

Could not find a declaration file for module 'mctext-react'. #3

iwillreku3206 opened this issue Dec 25, 2020 · 1 comment · May be fixed by #4

Comments

@iwillreku3206
Copy link

Following the instructions on README.md, I ran npm i --save mctext-react and put import McText from 'mctext-react'

VSCode/Ionic React gives me this error:

Could not find a declaration file for module 'mctext-react'. '{PROJECT ROOT}/node_modules/mctext-react/lib/McText.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/mctext-react` if it exists or add a new declaration (.d.ts) file containing `declare module 'mctext-react';`ts(7016)
@iwillreku3206
Copy link
Author

It's been a few months now and I realize that this is a TypeScript error since the package does not include a typings file. I am now going to make my own typings for this

@iwillreku3206 iwillreku3206 linked a pull request Mar 27, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants