Skip to content
This repository has been archived by the owner on Dec 25, 2020. It is now read-only.

Duplicate identifiers... among other errors #2

Open
clechner77 opened this issue Feb 25, 2017 · 2 comments
Open

Duplicate identifiers... among other errors #2

clechner77 opened this issue Feb 25, 2017 · 2 comments

Comments

@clechner77
Copy link

Getting duplicate identifier errors.... uninstalled the fetch definitions via npm uninstall @types/whatwg-fetch as current webpack has them installed. Of course, then sp-pnp-js gets cranky...

error TS2300: Duplicate identifier 'Headers'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\typescript\lib\lib.d.ts (11177,13): error TS2300: Duplicate identifier 'Headers'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\typescript\lib\lib.d.ts (13544,11): error TS2300: Duplicate identifier 'ReadableStream'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\typescript\lib\lib.d.ts (13550,13): error TS2300: Duplicate identifier 'ReadableStream'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\typescript\lib\lib.d.ts (13566,11): error TS2300: Duplicate identifier 'Request'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\typescript\lib\lib.d.ts (13583,13): error TS2300: Duplicate identifier 'Request'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\typescript\lib\lib.d.ts (13588,11): error TS2300: Duplicate identifier 'Response'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\typescript\lib\lib.d.ts (13599,13): error TS2300: Duplicate identifier 'Response'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\typescript\lib\lib.d.ts (17714,14): error TS2687: All declarations of 'bodyUsed' must have identical modifiers.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\ typescript\lib\lib.d.ts (19116,18): error TS2300: Duplicate identifier 'fetch'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\typescript\lib\lib.d.ts (19121,6): error TS2300: Duplicate identifier 'BodyInit'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\typescript\lib\lib.d.ts (19142,6): error TS2300: Duplicate identifier 'HeadersInit'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\typescript\lib\lib.d.ts (19152,6): error TS2300: Duplicate identifier 'RequestInfo'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\@types\whatwg-streams\index .d.ts (32,15): error TS2300: Duplicate identifier 'ReadableStream'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\@types\whatwg-fetch\index. d.ts (11,13): error TS2300: Duplicate identifier 'fetch'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\@types\whatwg-fetch\index.d.ts (13,14): error TS2300: Duplicate identifier 'HeadersInit'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\@types\whatwg-fetch\index.d.t s (14,15): error TS2300: Duplicate identifier 'Headers'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\@types\whatwg-fetch\index.d.ts (31,14): error TS2300: Duplicate identifier 'BodyInit'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\@types\whatwg-fetch\index.d.ts (33,5): error TS2687: All declarations of 'bodyUsed' must have identical modifiers.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\@typ es\whatwg-fetch\index.d.ts (41,14): error TS2300: Duplicate identifier 'RequestInfo'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\@types\whatwg-fetch\index.d.t s (42,15): error TS2300: Duplicate identifier 'Request'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\@types\whatwg-fetch\index.d.ts (61,11): error TS2300: Duplicate identifier 'Request'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\@types\whatwg-fetch\index.d.ts (67,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'referrerPolicy' must be of type 'string', but here has type 'ReferrerPolicy'.C:\Users\clechner\Documents\dev\SPOproj\usermaint\node_modules\@types\whatwg-fetch\index.d.ts (68,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'mode' must be of type 'string', but here has type 'RequestM

@garrytrinder
Copy link
Owner

Sorry, not been keeping up on this as much as I would like... I needs to be updated to reflect the latest version of PnP Core JS where there have been breaking changes from v1 to v2.

@clechner77
Copy link
Author

I figured that was the issue after taking a peak at PnP CoreJS....

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

No branches or pull requests

2 participants