-
Notifications
You must be signed in to change notification settings - Fork 210
@types/node/index.d.ts(138,13): error TS2300: Duplicate identifier 'require' #19
Comments
This workground works for me. |
@changtimwu solved,I added "types": ["react", "react-native", "jest"] to my tsconfig |
Adding "types" to tsconfig.json didn't work for me Edit: because I didn't know you're supposed to add them under "compilerOptions"...
|
@savovs, Nice catch, that helped me a lot. Unfortunately, when the compiler skips node, I still get errors, my project has dependencies on both node and react-native. Has there been any progress on this? Or are node and react-native mutually exclusive? |
I am having same issue: as @stewhi added stackoverflow question. |
When I remove the node types it gives me a lot of errors... |
For me, all I needed was:
... but this was a life saver! |
I got several error when I following this guide
![image](https://user-images.githubusercontent.com/8170047/34341282-0e4aa2f6-e9c7-11e7-9a14-39300cfbf937.png)
![image](https://user-images.githubusercontent.com/8170047/34341286-3c8a9a7c-e9c7-11e7-9f09-0fb6f3779c21.png)
and there's error about jsx : error TS2604: JSX element type 'Index' does not have any construct or call signatures
The text was updated successfully, but these errors were encountered: