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

build failed after adding webworker lib to tsconfig.json #2814

Closed
LuoZihYuan opened this issue Oct 26, 2018 · 1 comment
Closed

build failed after adding webworker lib to tsconfig.json #2814

LuoZihYuan opened this issue Oct 26, 2018 · 1 comment

Comments

@LuoZihYuan
Copy link

LuoZihYuan commented Oct 26, 2018

Version

3.0.5

Reproduction link

https://github.com/LuoZihYuan/VueCliService-Build-Error

Node and OS info

Node 8.12.0 / npm 6.4.1 / Mac OSX

Steps to reproduce

  1. npm install
  2. npm run build

What is expected?

 DONE  Compiled successfully in 5751ms                                                                                               10:56:48
 DONE  Build complete. The dist directory is ready to be deployed.
 INFO  Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html

What is actually happening?

using linterOptions to exclude "node_modules/**" doesn't seem to work

 ERROR  Failed to compile with 14 errors                                                                                             10:58:37

 error  in vuecliservice-build-error/node_modules/typescript/lib/lib.dom.d.ts
 error  in vuecliservice-build-error/node_modules/typescript/lib/lib.webworker.d.ts
 error  in vuecliservice-build-error/node_modules/typescript/lib/lib.webworker.d.ts
 error  in vuecliservice-build-error/node_modules/typescript/lib/lib.webworker.d.ts
 error  in vuecliservice-build-error/node_modules/typescript/lib/lib.webworker.d.ts
 error  in vuecliservice-build-error/node_modules/typescript/lib/lib.webworker.d.ts
 error  in vuecliservice-build-error/node_modules/typescript/lib/lib.webworker.d.ts
 error  in vuecliservice-build-error/node_modules/typescript/lib/lib.webworker.d.ts
 error  in vuecliservice-build-error/node_modules/typescript/lib/lib.webworker.d.ts
 error  in vuecliservice-build-error/node_modules/typescript/lib/lib.webworker.d.ts
 error  in vuecliservice-build-error/node_modules/typescript/lib/lib.webworker.d.ts
 error  in vuecliservice-build-error/node_modules/typescript/lib/lib.webworker.d.ts
 error  in vuecliservice-build-error/node_modules/typescript/lib/lib.webworker.d.ts
 error  in vuecliservice-build-error/node_modules/typescript/lib/lib.webworker.d.ts

 ERROR  Build failed with errors.

// tsconfig.json
{
  "compilerOptions": {
    "lib": [
      "esnext",
      "dom",
      "dom.iterable",
      "scripthost",
      "webworker"
    ]
  },
  "exclude": [
    "node_modules"
  ]
}
@haoqunjiang
Copy link
Member

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

No branches or pull requests

2 participants