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

npm run build fails #5

Open
w495 opened this issue Mar 14, 2020 · 0 comments
Open

npm run build fails #5

w495 opened this issue Mar 14, 2020 · 0 comments

Comments

@w495
Copy link

w495 commented Mar 14, 2020

In console:


ERROR in ./~/css-loader/dist/cjs.js?minimize!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-0eb80bf4","scoped":false,"hasInlineConfig":true}!./~/stylus-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/App.vue
Module build failed: ValidationError: Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
 - options has an unknown property 'minimize'. These properties are valid:
   object { url?, import?, modules?, sourceMap?, importLoaders?, localsConvention?, onlyLocals?, esModule? }
    at validate (/data/espa/Projects/exps/vue-ts-exps/reps/linzebingo/vue-ssr-typescript/node_modules/css-loader/node_modules/schema-utils/dist/validate.js:85:11)
    at Object.loader (/data/espa/Projects/exps/vue-ts-exps/reps/linzebingo/vue-ssr-typescript/node_modules/css-loader/dist/index.js:34:28)
 @ ./~/vue-style-loader!./~/css-loader/dist/cjs.js?minimize!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-0eb80bf4","scoped":false,"hasInlineConfig":true}!./~/stylus-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/App.vue 4:14-325
 @ ./src/App.vue
 @ ./src/app.ts
 @ ./src/entry-client.ts

ERROR in ./~/css-loader/dist/cjs.js?minimize!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-6f6ea10b","scoped":false,"hasInlineConfig":true}!./~/stylus-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/views/ItemView.vue
Module build failed: ValidationError: Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
 - options has an unknown property 'minimize'. These properties are valid:
   object { url?, import?, modules?, sourceMap?, importLoaders?, localsConvention?, onlyLocals?, esModule? }
    at validate (/data/espa/Projects/exps/vue-ts-exps/reps/linzebingo/vue-ssr-typescript/node_modules/css-loader/node_modules/schema-utils/dist/validate.js:85:11)
    at Object.loader (/data/espa/Projects/exps/vue-ts-exps/reps/linzebingo/vue-ssr-typescript/node_modules/css-loader/dist/index.js:34:28)
 @ ./~/vue-style-loader!./~/css-loader/dist/cjs.js?minimize!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-6f6ea10b","scoped":false,"hasInlineConfig":true}!./~/stylus-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/views/ItemView.vue 4:14-342
 @ ./src/views/ItemView.vue
 @ ./src/router/index.ts
 @ ./src/app.ts
 @ ./src/entry-client.ts

ERROR in ./~/css-loader/dist/cjs.js?minimize!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-41764d7b","scoped":false,"hasInlineConfig":true}!./~/stylus-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/views/UserView.vue
Module build failed: ValidationError: Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
 - options has an unknown property 'minimize'. These properties are valid:
   object { url?, import?, modules?, sourceMap?, importLoaders?, localsConvention?, onlyLocals?, esModule? }
    at validate (/data/espa/Projects/exps/vue-ts-exps/reps/linzebingo/vue-ssr-typescript/node_modules/css-loader/node_modules/schema-utils/dist/validate.js:85:11)
    at Object.loader (/data/espa/Projects/exps/vue-ts-exps/reps/linzebingo/vue-ssr-typescript/node_modules/css-loader/dist/index.js:34:28)
 @ ./~/vue-style-loader!./~/css-loader/dist/cjs.js?minimize!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-41764d7b","scoped":false,"hasInlineConfig":true}!./~/stylus-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/views/UserView.vue 4:14-342
 @ ./src/views/UserView.vue
 @ ./src/router/index.ts
 @ ./src/app.ts
 @ ./src/entry-client.ts

ERROR in ./~/css-loader/dist/cjs.js?minimize!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-0c0e6bf2","scoped":false,"hasInlineConfig":true}!./~/stylus-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/Spinner.vue
Module build failed: ValidationError: Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
 - options has an unknown property 'minimize'. These properties are valid:
   object { url?, import?, modules?, sourceMap?, importLoaders?, localsConvention?, onlyLocals?, esModule? }
    at validate (/data/espa/Projects/exps/vue-ts-exps/reps/linzebingo/vue-ssr-typescript/node_modules/css-loader/node_modules/schema-utils/dist/validate.js:85:11)
    at Object.loader (/data/espa/Projects/exps/vue-ts-exps/reps/linzebingo/vue-ssr-typescript/node_modules/css-loader/dist/index.js:34:28)
 @ ./~/vue-style-loader!./~/css-loader/dist/cjs.js?minimize!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-0c0e6bf2","scoped":false,"hasInlineConfig":true}!./~/stylus-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/Spinner.vue 4:14-341
 @ ./src/components/Spinner.vue
 @ ./~/vue-loader/lib/selector.js?type=script&index=0!./src/views/ItemView.vue
 @ ./src/views/ItemView.vue
 @ ./src/router/index.ts
 @ ./src/app.ts
 @ ./src/entry-client.ts

ERROR in ./~/css-loader/dist/cjs.js?minimize!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-6235c299","scoped":false,"hasInlineConfig":true}!./~/stylus-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/Comment.vue
Module build failed: ValidationError: Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
 - options has an unknown property 'minimize'. These properties are valid:
   object { url?, import?, modules?, sourceMap?, importLoaders?, localsConvention?, onlyLocals?, esModule? }
    at validate (/data/espa/Projects/exps/vue-ts-exps/reps/linzebingo/vue-ssr-typescript/node_modules/css-loader/node_modules/schema-utils/dist/validate.js:85:11)
    at Object.loader (/data/espa/Projects/exps/vue-ts-exps/reps/linzebingo/vue-ssr-typescript/node_modules/css-loader/dist/index.js:34:28)
 @ ./~/vue-style-loader!./~/css-loader/dist/cjs.js?minimize!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-6235c299","scoped":false,"hasInlineConfig":true}!./~/stylus-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/Comment.vue 4:14-341
 @ ./src/components/Comment.vue
 @ ./~/vue-loader/lib/selector.js?type=script&index=0!./src/views/ItemView.vue
 @ ./src/views/ItemView.vue
 @ ./src/router/index.ts
 @ ./src/app.ts
 @ ./src/entry-client.ts

ERROR in ./~/css-loader/dist/cjs.js?minimize!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-d863a588","scoped":false,"hasInlineConfig":true}!./~/stylus-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/ItemList.vue
Module build failed: ValidationError: Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
 - options has an unknown property 'minimize'. These properties are valid:
   object { url?, import?, modules?, sourceMap?, importLoaders?, localsConvention?, onlyLocals?, esModule? }
    at validate (/data/espa/Projects/exps/vue-ts-exps/reps/linzebingo/vue-ssr-typescript/node_modules/css-loader/node_modules/schema-utils/dist/validate.js:85:11)
    at Object.loader (/data/espa/Projects/exps/vue-ts-exps/reps/linzebingo/vue-ssr-typescript/node_modules/css-loader/dist/index.js:34:28)
 @ ./~/vue-style-loader!./~/css-loader/dist/cjs.js?minimize!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-d863a588","scoped":false,"hasInlineConfig":true}!./~/stylus-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/ItemList.vue 4:14-342
 @ ./src/components/ItemList.vue
 @ ./src/views/CreateListView.ts
 @ ./src/router/index.ts
 @ ./src/app.ts
 @ ./src/entry-client.ts

ERROR in ./~/css-loader/dist/cjs.js?minimize!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-7b8d15b1","scoped":false,"hasInlineConfig":true}!./~/stylus-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/Item.vue
Module build failed: ValidationError: Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
 - options has an unknown property 'minimize'. These properties are valid:
   object { url?, import?, modules?, sourceMap?, importLoaders?, localsConvention?, onlyLocals?, esModule? }
    at validate (/data/espa/Projects/exps/vue-ts-exps/reps/linzebingo/vue-ssr-typescript/node_modules/css-loader/node_modules/schema-utils/dist/validate.js:85:11)
    at Object.loader (/data/espa/Projects/exps/vue-ts-exps/reps/linzebingo/vue-ssr-typescript/node_modules/css-loader/dist/index.js:34:28)
 @ ./~/vue-style-loader!./~/css-loader/dist/cjs.js?minimize!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-7b8d15b1","scoped":false,"hasInlineConfig":true}!./~/stylus-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/Item.vue 4:14-338
 @ ./src/components/Item.vue
 @ ./~/vue-loader/lib/selector.js?type=script&index=0!./src/components/ItemList.vue
 @ ./src/components/ItemList.vue
 @ ./src/views/CreateListView.ts
 @ ./src/router/index.ts
 @ ./src/app.ts
 @ ./src/entry-client.ts
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! vue-ssr-typescript@1.0.0 build:client: `cross-env NODE_ENV=production webpack --config build/webpack.client.config.js --progress --hide-modules`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the vue-ssr-typescript@1.0.0 build:client script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/w495/.npm/_logs/2020-03-14T23_32_23_829Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! vue-ssr-typescript@1.0.0 build: `rimraf dist && npm run build:client && npm run build:server`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the vue-ssr-typescript@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/w495/.npm/_logs/2020-03-14T23_32_23_845Z-debug.log

Log:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'build' ]
2 info using npm@6.14.2
3 info using node@v13.10.1
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle vue-ssr-typescript@1.0.0~prebuild: vue-ssr-typescript@1.0.0
6 info lifecycle vue-ssr-typescript@1.0.0~build: vue-ssr-typescript@1.0.0
7 verbose lifecycle vue-ssr-typescript@1.0.0~build: unsafe-perm in lifecycle true
8 verbose lifecycle vue-ssr-typescript@1.0.0~build: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/data/espa/Projects/exps/vue-ts-exps/reps/linzebingo/vue-ssr-typescript/node_modules/.bin:/home/w495/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/cuda/bin:/home/w495/.local/share/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin
9 verbose lifecycle vue-ssr-typescript@1.0.0~build: CWD: /data/espa/Projects/exps/vue-ts-exps/reps/linzebingo/vue-ssr-typescript
10 silly lifecycle vue-ssr-typescript@1.0.0~build: Args: [ '-c', 'rimraf dist && npm run build:client && npm run build:server' ]
11 silly lifecycle vue-ssr-typescript@1.0.0~build: Returned: code: 2  signal: null
12 info lifecycle vue-ssr-typescript@1.0.0~build: Failed to exec build script
13 verbose stack Error: vue-ssr-typescript@1.0.0 build: `rimraf dist && npm run build:client && npm run build:server`
13 verbose stack Exit status 2
13 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:316:20)
13 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:316:20)
13 verbose stack     at maybeClose (internal/child_process.js:1026:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid vue-ssr-typescript@1.0.0
15 verbose cwd /data/espa/Projects/exps/vue-ts-exps/reps/linzebingo/vue-ssr-typescript
16 verbose Linux 5.5.8-1-MANJARO
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
18 verbose node v13.10.1
19 verbose npm  v6.14.2
20 error code ELIFECYCLE
21 error errno 2
22 error vue-ssr-typescript@1.0.0 build: `rimraf dist && npm run build:client && npm run build:server`
22 error Exit status 2
23 error Failed at the vue-ssr-typescript@1.0.0 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2, true ]
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

1 participant