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.

[typescript] TS2694 Namespace error during tsc

See original GitHub issue

Version

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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
morajabicommented, Nov 6, 2017

Are you sure package versions match with their @types/<package> dependants?

0reactions
ghostcommented, Dec 20, 2017

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?

Read more comments on GitHub >

github_iconTop 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 >

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