-
Notifications
You must be signed in to change notification settings - Fork 30.6k
Is there a conflict between @types/node and @types/react-native? #15960
Copy link
Copy link
Closed
Description
- I tried using the
@types/nodeand@types/react-nativepackage and had problems. - I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript
- I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).
- Mention the authors (see
Definitions by:inindex.d.ts) so they can respond.
Both of the modules seem to define require and this results in some compliation trouble:
../node_modules/@types/node/index.d.ts(49,13): error TS2451: Cannot redeclare block-scoped variable 'global'.
../node_modules/@types/node/index.d.ts(73,13): error TS2300: Duplicate identifier 'require'.
../node_modules/@types/react-native/index.d.ts(8541,11): error TS2451: Cannot redeclare block-scoped variable 'global'.
../node_modules/@types/react-native/index.d.ts(8542,14): error TS2300: Duplicate identifier 'require'.
Any tips/workarounds?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels