question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not find type declaration file for '@fortawesome/react-native-fontawesome'

See original GitHub issue

Describe the bug I am not sure if it’s a bug or a misconfiguration on my side, but i installed react-native-fontawesome@0.2.1 pro, from the npm.fortawesome registry. My typescript checker fails because it cannot find a type declaration file, while i can see the file in this repo. Maybe it has something to do with the fact that im using the pro version? If its not a bug, excuse me for asking it here.

Reproducible test case Add a .npmrc to point @fortawesome to npm.fortawesome.com with a authentication token, install @fortawesome/react-native-fontawesome and typescript, run yarn tsc.

Expected behavior To be an index.d.ts in the module.

Desktop (please complete the following information): MacOS NPM v.6.9.0 Node v10.16.0

Additional context As i said, my thought was that it had something to do with the free/pro versions.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
robmadolecommented, Feb 17, 2020

@Baybars87 @SocialBrothersDEV I just release 0.2.2. Can you give this version a try?

0reactions
robmadolecommented, Feb 20, 2020

Awesome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find a declaration file for module 'module-name ...
Here are two other solutions. When a module is not yours - try to install types from @types : npm install -D @types/module-name....
Read more >
How to fix error TS7016: Could not find a declaration file for ...
Try `npm install @types/XYZ` if it exists or add a new declaration (.d.ts) file containing `declare module 'XYZ';. If XYZ is a direct...
Read more >
Could not find a declaration file for module 'fetch' #373 - GitHub
I am having an issue while trying to compile from typescript : node_modules/ews-javascript-api/typings/ExchangeWebService.d.ts:3:53 - error ...
Read more >
TypeScript — Type Declaration Files | by Makesh Kumar
In this case, TypeScript will complain about missing type declaration file: Could not find a declaration file for module '<module-name>'.
Read more >
Error: Could not find a declaration file for module - YouTube
Fix error: Could not find a declaration file for module ... implicitly has an 'any' type.Try npm install library-name if it exists or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found