Skip to content
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

Node 10 types are incompatible with typescript lib types #23769

Closed
nojvek opened this issue Apr 29, 2018 · 2 comments
Closed

Node 10 types are incompatible with typescript lib types #23769

nojvek opened this issue Apr 29, 2018 · 2 comments
Labels
External Relates to another program, environment, or user action which we cannot control.

Comments

@nojvek
Copy link
Contributor

nojvek commented Apr 29, 2018

node_modules/@types/node/index.d.ts(2381,15): error TS2300: Duplicate identifier 'URL'.
node_modules/@types/node/index.d.ts(2399,15): error TS2300: Duplicate identifier 'URLSearchParams'.
node_modules/@types/node/index.d.ts(2417,14): error TS2661: Cannot export 'URL'. Only local declarations can be exported from a module.
node_modules/@types/node/index.d.ts(2417,19): error TS2661: Cannot export 'URLSearchParams'. Only local declarations can be exported from a module.
node_modules/typescript/lib/lib.es2017.full.d.ts(13409,11): error TS2300: Duplicate identifier 'URL'.
node_modules/typescript/lib/lib.es2017.full.d.ts(13425,13): error TS2300: Duplicate identifier 'URL'.
node_modules/typescript/lib/lib.es2017.full.d.ts(13432,11): error TS2300: Duplicate identifier 'URLSearchParams'.
node_modules/typescript/lib/lib.es2017.full.d.ts(13459,13): error TS2300: Duplicate identifier 'URLSearchParams'.
node_modules/typescript/lib/lib.es2017.full.d.ts(15745,13): error TS2300: Duplicate identifier 'URL'.
node_modules/typescript/lib/lib.es2017.full.d.ts(15746,13): error TS2300: Duplicate identifier 'URLSearchParams'.
node_modules/typescript/lib/lib.es2017.full.d.ts(16508,11): error TS2300: Duplicate identifier 'URLSearchParams'.
  "devDependencies": {
    "@types/node": "^10.0.0",
    "typescript": "^2.8.3"
  }
{
    "compilerOptions": {
        "module": "commonjs",
        "noImplicitAny": true,
        "removeComments": false,
        "target": "es2017",
        "outDir": "../out",
        "moduleResolution": "node",
        "typeRoots": [
            "node_modules/@types"
        ],
        "types": [
            "node"
        ]
    }
}
@nojvek nojvek changed the title Node types are incompatible with typescript lib types Node 10 types are incompatible with typescript lib types Apr 29, 2018
qdot added a commit to buttplugio/vue-buttplug-material-component that referenced this issue Apr 29, 2018
Update webpack to v4, along with the relevant loaders. Keep
@types/node at 9.6.7, as it will conflict with typescript due to
microsoft/TypeScript#23769, and this shows
up via fork-ts-checker-webpack-plugin.
qdot added a commit to intiface/buttplug-playground that referenced this issue Apr 30, 2018
Update webpack to v4, along with the relevant loaders. Keep
@types/node at 9.6.7, as it will conflict with typescript due to
microsoft/TypeScript#23769, and this shows
up via fork-ts-checker-webpack-plugin.
@styfle
Copy link
Contributor

styfle commented Apr 30, 2018

I think this is a duplicate of DefinitelyTyped/DefinitelyTyped#25342

@mhegazy mhegazy added the External Relates to another program, environment, or user action which we cannot control. label Apr 30, 2018
@typescript-bot
Copy link
Collaborator

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.

@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
External Relates to another program, environment, or user action which we cannot control.
Projects
None yet
Development

No branches or pull requests

4 participants