Skip to content
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

@types/requirejs conflicts with @types/node #1815

Open
crystalfp opened this issue Sep 1, 2020 · 0 comments
Open

@types/requirejs conflicts with @types/node #1815

crystalfp opened this issue Sep 1, 2020 · 0 comments

Comments

@crystalfp
Copy link

Having installed both packages @types/node (v 14.6.2) and @types/requirejs (v. 2.1.32) there are conflicts during typescript compilations:

node_modules/@types/node/module.d.ts(51,14): error TS2300: Duplicate identifier 'mod'.
node_modules/@types/requirejs/index.d.ts(38,14): error TS2300: Duplicate identifier 'mod'.
node_modules/@types/requirejs/index.d.ts(422,13): error TS2403: Subsequent variable declarations must have the
same type.  Variable 'require' must be of type 'NodeRequire', but here has type 'Require'.

In file node_modules/@types/requirejs/index.d.ts commenting line 422 declare var require: Require; and lines 32-39 declare module 'module' {... solved the problem apparently without side effects.

Thanks for looking!
mario

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant