[typescript] TS2694 Namespace error during tsc
See original GitHub issueVersion
2.2.3 [native]
Reproduction
Building project with tsx
results in following error that appears to be coming from styled components module (or react native itself? not too sure here)
node_modules/styled-components/native/index.d.ts(38,52): error TS2694: Namespace '"/Users/me/Documents/Repositories/project/node_modules/@types/react-native/index"' has no exported member 'NavigatorProperties'.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:8 (5 by maintainers)
Top Results From Across the Web
"error TS2694: Namespace 'angular' has no exported ...
Manually editing the file like in the accepted answer above caused some issues for me. Running "yarn upgrade" or altering some packages ...
Read more >TypeScript errors and how to fix them
Below you find a list of common TypeScript errors along with the buggy code ... error TS2694: Namespace ' React ' has no...
Read more >Solved: TypeScript compile errors
When I do npx tsc I get several errors: node_modules/@arcgis/core/interfaces.d.ts:1:1 - error TS6200: Definitions of the following ...
Read more >Typescript Compiler fails with OpenGSN v2.2.1 - General
Running yarn tsc causes the following output: ... error TS2694: Namespace 'global. ... Typescript Compiler fails with OpenGSN v2.2.1.
Read more >Module has no exported member error in TypeScript
The error "Module has no exported member" occurs when we try to import a member that doesn't exist in the specified module. To...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Are you sure package versions match with their
@types/<package>
dependants?I’m getting this error for Koa.
…/node_modules/@types/koa/index.d.ts(104,14): error TS2694: Namespace ‘“url”’ has no exported member ‘URL’.
What is going on exactly? What is @types? Is this something maintained by Koa? Is this something generated by typescript?