Stencil version:
@stencil/[email protected]
npm -v = 5.6.0
node -v = v8.11.1 (also tried on 8.9.4)
Windows 10
I'm submitting a:
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://stencil-worldwide.slack.com
Current behavior:
Any version of stencil above v0.7.20 seems to cause errors on build.
> stencil build
[26:16.9] @stencil/core v0.7.21
[26:16.9] build, app, prod mode, started ...
[26:16.9] compile started ...
[26:28.4] compile finished in 11.49 s
[ ERROR ] typescript: ...site/node_modules/@types/node/index.d.ts, line: 2381
Duplicate identifier 'URL'.
L2380: values(): IterableIterator<string>;
L2381: [Symbol.iterator](): IterableIterator<[string, string]>;
[ ERROR ] typescript: ...site/node_modules/@types/node/index.d.ts, line: 2399
Duplicate identifier 'URLSearchParams'.
L2399: export interface LookupOneOptions extends LookupOptions {
L2400: all?: false;
[ ERROR ] typescript: ...site/node_modules/@types/node/index.d.ts, line: 2417
Cannot export 'URL'. Only local declarations can be exported from a module.
L2416: export function lookup(hostname: string, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void): void;
L2418: // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
[ ERROR ] typescript: ...site/node_modules/@types/node/index.d.ts, line: 2417
Cannot export 'URLSearchParams'. Only local declarations can be exported from a module.
L2416: export function lookup(hostname: string, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void): void;
L2418: // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
[ ERROR ] typescript: ...site/node_modules/typescript/lib/lib.dom.d.ts, line: 13401
Duplicate identifier 'URL'.
L13400: interface URLSearchParams {
L13402: * Appends a specified key/value pair as a new search parameter.
[ ERROR ] typescript: ...site/node_modules/typescript/lib/lib.dom.d.ts, line: 13424
Duplicate identifier 'URLSearchParams'.
L13424: set(name: string, value: string): void;
[26:28.4] build failed in 11.54 s
Expected behavior:
Expect the code to build as it does with stencil v0.7.20.
npm packages
"dependencies": {
"@stencil/core": "0.7.21",
"@stencil/router": "0.0.28",
"izitoast": "^1.2.0",
"luxon": "^1.2.0"
},
"devDependencies": {
"@stencil/dev-server": "0.0.18",
"@stencil/postcss": "0.0.4",
"@stencil/sass": "0.0.3",
"@stencil/utils": "latest",
"@types/jest": "^21.1.10",
"@types/marked": "^0.3.0",
"autoprefixer": "^8.2.0",
"copyfiles": "^2.0.0",
"jest": "^21.2.1",
"npm-run-all": "^4.1.2",
"onchange": "^3.3.0",
"rimraf": "^2.6.2"
},
Duplicate identifier with types/node 10.0
https://github.com/DefinitelyTyped/DefinitelyTyped/issues/25342
Temp fix
npm i @types/[email protected]
Most helpful comment
Duplicate identifier with types/node 10.0
https://github.com/DefinitelyTyped/DefinitelyTyped/issues/25342
Temp fix