-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript Duplicate identifier
error after 3.6.1 mobx update
#1362
Comments
The error doesn't mention anything related to mobx, but two other packages instead (and mobx doesn't depend on either of them). So I suspect this error originates from another update that occurred at the same time, or a mess in your node_modules. Please reopen and provide a reproduction repo if you think this isn't the case and the issue is actually caused by MobX. |
I tried to clear node_modules without effect. Only a downgrade to 3.51 fix my issue. I create a minimal project from scratch to reproduce it. And now i have a more explicit mobx related error when i run I posted my minimal code there : https://github.com/mturki/testMobx |
I just tested 3.6.2, and it seems to work well now. Thanks @mweststrate! |
I have a Duplicate identifier 'require' error with my Typescript react native project when i run the
tsc
command :node_modules/@types/node/index.d.ts(99,13): error TS2300: Duplicate identifier 'require'. node_modules/@types/react-native/index.d.ts(8618,14): error TS2300: Duplicate identifier 'require'.
Downgrading to mobx 3.5.1 solves the problem.
typescript version : 2.7.2
The text was updated successfully, but these errors were encountered: