This repository was archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 231
This repository was archived by the owner on Aug 28, 2024. It is now read-only.
Copy link
Copy link
Closed
Labels
Description
Category
[ ] Enhancement
[x] Bug
[ ] Question
Expected / Desired Behavior / Question
If I use pnp-js-core in my angular 2 app (where core-js is a dependency) i can't compile the latest version 1.0.5 anymore. 1.0.4 works if I add typings for microsoft.ajax
and whatwg-fetch
additionally.
There are several hints that @typings/core-js causes the problem and should be removed:
angular/angular-cli#1908
angular/angular-cli#2106
Observed Behavior
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:21:13
Duplicate identifier 'PropertyKey'.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:85:4
All declarations of 'name' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:145:4
Subsequent variable declarations must have the same type. Variable '[Symbol.unscopables]' must be of type '{ copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: ...', but here has type 'any'.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:262:4
All declarations of 'flags' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:276:4
All declarations of 'EPSILON' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:311:4
All declarations of 'MAX_SAFE_INTEGER' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:318:4
All declarations of 'MIN_SAFE_INTEGER' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:457:4
Subsequent variable declarations must have the same type. Variable '[Symbol.toStringTag]' must be of type '"Symbol"', but here has type 'string'.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:457:4
All declarations of '[Symbol.toStringTag]' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:464:4
All declarations of 'prototype' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:492:4
All declarations of 'hasInstance' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:498:4
All declarations of 'isConcatSpreadable' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:504:4
All declarations of 'iterator' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:510:4
All declarations of 'match' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:516:4
All declarations of 'replace' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:522:4
All declarations of 'search' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:528:4
All declarations of 'species' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:534:4
All declarations of 'split' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:540:4
All declarations of 'toPrimitive' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:546:4
All declarations of 'toStringTag' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:552:4
All declarations of 'unscopables' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:609:4
Subsequent variable declarations must have the same type. Variable '[Symbol.toStringTag]' must be of type '"Math"', but here has type 'string'.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:609:4
All declarations of '[Symbol.toStringTag]' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:613:4
Subsequent variable declarations must have the same type. Variable '[Symbol.toStringTag]' must be of type '"JSON"', but here has type 'string'.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:613:4
All declarations of '[Symbol.toStringTag]' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:628:4
All declarations of 'size' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:634:4
All declarations of 'prototype' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:645:4
All declarations of 'size' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:651:4
All declarations of 'prototype' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:666:4
All declarations of 'prototype' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:680:4
All declarations of 'prototype' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:692:4
All declarations of 'value' must have identical modifiers.
ERROR in [default] C:\projects\test\node_modules\@types\core-js\index.d.ts:804:4
All declarations of 'prototype' must have identical modifiers.
Steps to Reproduce
- Create a plain project following this guide: https://angular.io/docs/ts/latest/guide/webpack.html
- Install pnp-js-core 1.0.5
- Compile