-
-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
NativeScript/NativeScript
#3636Description
When installing typings using @types/packageName
and the package requires @types/node
, it conflicts with declarations from tns-core-modules
:
node_modules/@types/node/index.d.ts(38,11): error TS2300: Duplicate identifier 'MapConstructor'.
node_modules/@types/node/index.d.ts(40,11): error TS2300: Duplicate identifier 'SetConstructor'.
node_modules/@types/node/index.d.ts(49,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'global' must be of type 'any', but here has type 'Global'.
node_modules/@types/node/index.d.ts(73,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'require' must be of type 'NativeScriptRequire', but here has type 'NodeRequire'.
node_modules/@types/node/index.d.ts(85,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'module' must be of type 'NativeScriptModule', but here has type 'NodeModule'.
node_modules/@types/node/index.d.ts(3815,5): error TS2309: An export assignment cannot be used in a module with other exported elements.
node_modules/tns-core-modules/es-collections.d.ts(30,14): error TS2300: Duplicate identifier 'MapConstructor'.
node_modules/tns-core-modules/es-collections.d.ts(31,14): error TS2300: Duplicate identifier 'SetConstructor'.
is there any reason why tns-core-modules
are using it's own version of the node
typings?
caraclarke, tdraier, ivanpadavan, raul26, AlQuraian and 2 more
Metadata
Metadata
Assignees
Labels
No labels