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/core-js conflicts with typescript/lib/lib.es6.d.ts when @types/core-js is not actually used #11700
Comments
What part of core-js is needed that isn't included in lib.es6? Couldn't you simply not install |
@aciccarello core-js and @types/core-js is used by frontend in There are 2 |
@plantain-00 Did you figure this out? |
@jefbarn For non-standard features, I have no solution. {
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"lib": [
"es2015",
"es5",
"dom",
"scripthost"
]
}
} It seems this issue is still needed, I will reopen this. |
I am having this issue using |
@anorborg I did get my situation working using something like this:
|
@jefbarn that did work. Basically the the |
Bump for attention. I just created a new project with
Which would produce these errors:
Changing the target to I'm not sure how this issue has recieved so little attention; surely many people are trying to target ES6 with TS and would also run into this? |
@wyqydsyq core.js and ES6 both define a lot of the same definitions. Either don't include @types/core.js or set "lib": ["es5", "dom"], in your tsconfig |
I am also getting the similar kind of conflict. 1>c:\Program Files (x86)\Microsoft SDKs\TypeScript\2.6\lib.es2015.iterable.d.ts(203,11): error TS2300: Build:Duplicate identifier 'Promise'. tsconfig: - { Package.Json:
npm 5.5.1 Any workaround? |
had the similar issue. Added |
Hi ./node_modules/@types/core-js/index.d.ts:1461:36 - error TS2339: Property 'for' does not exist on type 'SymbolConstructor'. 1461 const _for: typeof core.Symbol.for; ../node_modules/@types/core-js/index.d.ts:1465:43 - error TS2339: Property 'hasInstance' does not exist on type 'SymbolConstructor'. 1465 const hasInstance: typeof core.Symbol.hasInstance; ../node_modules/@types/core-js/index.d.ts:1469:50 - error TS2339: Property 'isConcatSpreadable' does not exist on type 'SymbolConstructor'. 1469 const isConcatSpreadable: typeof core.Symbol.isConcatSpreadable; ../node_modules/@types/core-js/index.d.ts:1477:38 - error TS2339: Property 'keyFor' does not exist on type 'SymbolConstructor'. 1477 const keyFor: typeof core.Symbol.keyFor; ../node_modules/@types/core-js/index.d.ts:1481:37 - error TS2339: Property 'match' does not exist on type 'SymbolConstructor'. 1481 const match: typeof core.Symbol.match; ../node_modules/@types/core-js/index.d.ts:1485:39 - error TS2339: Property 'replace' does not exist on type 'SymbolConstructor'. 1485 const replace: typeof core.Symbol.replace; ../node_modules/@types/core-js/index.d.ts:1489:38 - error TS2339: Property 'search' does not exist on type 'SymbolConstructor'. 1489 const search: typeof core.Symbol.search; ../node_modules/@types/core-js/index.d.ts:1493:39 - error TS2339: Property 'species' does not exist on type 'SymbolConstructor'. 1493 const species: typeof core.Symbol.species; ../node_modules/@types/core-js/index.d.ts:1497:37 - error TS2339: Property 'split' does not exist on type 'SymbolConstructor'. 1497 const split: typeof core.Symbol.split; ../node_modules/@types/core-js/index.d.ts:1501:43 - error TS2339: Property 'toPrimitive' does not exist on type 'SymbolConstructor'. 1501 const toPrimitive: typeof core.Symbol.toPrimitive; ../node_modules/@types/core-js/index.d.ts:1505:43 - error TS2339: Property 'toStringTag' does not exist on type 'SymbolConstructor'. 1505 const toStringTag: typeof core.Symbol.toStringTag; ../node_modules/@types/core-js/index.d.ts:1509:43 - error TS2339: Property 'unscopables' does not exist on type 'SymbolConstructor'. 1509 const unscopables: typeof core.Symbol.unscopables; ../node_modules/@types/core-js/index.d.ts:2272:36 - error TS2339: Property 'for' does not exist on type 'SymbolConstructor'. 2272 const _for: typeof core.Symbol.for; ../node_modules/@types/core-js/index.d.ts:2276:43 - error TS2339: Property 'hasInstance' does not exist on type 'SymbolConstructor'. 2276 const hasInstance: typeof core.Symbol.hasInstance; ../node_modules/@types/core-js/index.d.ts:2280:50 - error TS2339: Property 'isConcatSpreadable' does not exist on type 'SymbolConstructor'. 2280 const isConcatSpreadable: typeof core.Symbol.isConcatSpreadable; ../node_modules/@types/core-js/index.d.ts:2288:38 - error TS2339: Property 'keyFor' does not exist on type 'SymbolConstructor'. 2288 const keyFor: typeof core.Symbol.keyFor; ../node_modules/@types/core-js/index.d.ts:2292:37 - error TS2339: Property 'match' does not exist on type 'SymbolConstructor'. 2292 const match: typeof core.Symbol.match; ../node_modules/@types/core-js/index.d.ts:2296:39 - error TS2339: Property 'replace' does not exist on type 'SymbolConstructor'. 2296 const replace: typeof core.Symbol.replace; ../node_modules/@types/core-js/index.d.ts:2300:38 - error TS2339: Property 'search' does not exist on type 'SymbolConstructor'. 2300 const search: typeof core.Symbol.search; ../node_modules/@types/core-js/index.d.ts:2304:39 - error TS2339: Property 'species' does not exist on type 'SymbolConstructor'. 2304 const species: typeof core.Symbol.species; ../node_modules/@types/core-js/index.d.ts:2308:37 - error TS2339: Property 'split' does not exist on type 'SymbolConstructor'. 2308 const split: typeof core.Symbol.split; ../node_modules/@types/core-js/index.d.ts:2312:43 - error TS2339: Property 'toPrimitive' does not exist on type 'SymbolConstructor'. 2312 const toPrimitive: typeof core.Symbol.toPrimitive; ../node_modules/@types/core-js/index.d.ts:2316:43 - error TS2339: Property 'toStringTag' does not exist on type 'SymbolConstructor'. 2316 const toStringTag: typeof core.Symbol.toStringTag; ../node_modules/@types/core-js/index.d.ts:2320:43 - error TS2339: Property 'unscopables' does not exist on type 'SymbolConstructor'. 2320 const unscopables: typeof core.Symbol.unscopables; This is the error i am getting my tsconfig |
A simple reproduce repository: https://github.com/plantain-00/test , after
npm i && npm run build
, the error is:Expected: no error, because the
app.ts
is empty. the@types/core-js
is used instatic/app.ts
.The text was updated successfully, but these errors were encountered: