Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

run build have CSS Loader errors #7

Open
FlameArt opened this issue Aug 6, 2019 · 0 comments
Open

run build have CSS Loader errors #7

FlameArt opened this issue Aug 6, 2019 · 0 comments

Comments

@FlameArt
Copy link

FlameArt commented Aug 6, 2019

Node 12.7 latest

$ npm i -g @vue/cli
$ npm i -g @vue/cli-init
$ vue init xrei/vue-ssr project-name
$ cd project-name
$ npm install
$ npm run dev

-> ok

and

npm run build

ERROR in ./src/App.vue?vue&type=style&index=0&lang=css& (./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js??ref--4-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=style&index=0&lang=css&)
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/css-loader/dist/cjs.js):
ValidationError: CSS Loader Invalid Options

options should NOT have additional properties

    at validateOptions (E:\ssr-xrei\node_modules\schema-utils\src\validateOptions.js:32:11)
    at Object.loader (E:\ssr-xrei\node_modules\css-loader\dist\index.js:44:28)
    at runLoaders (E:\ssr-xrei\node_modules\webpack\lib\NormalModule.js:313:20)
    at E:\ssr-xrei\node_modules\loader-runner\lib\LoaderRunner.js:367:11
    at E:\ssr-xrei\node_modules\loader-runner\lib\LoaderRunner.js:233:18
    at runSyncOrAsync (E:\ssr-xrei\node_modules\loader-runner\lib\LoaderRunner.js:143:3)
    at iterateNormalLoaders (E:\ssr-xrei\node_modules\loader-runner\lib\LoaderRunner.js:232:2)
    at iterateNormalLoaders (E:\ssr-xrei\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
    at E:\ssr-xrei\node_modules\loader-runner\lib\LoaderRunner.js:236:3
    at Object.context.callback (E:\ssr-xrei\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
    at Object.module.exports (E:\ssr-xrei\node_modules\vue-loader\lib\loaders\stylePostLoader.js:21:10)
 @ ./src/App.vue?vue&type=style&index=0&lang=css& 1:0-329 1:345-348 1:350-676 1:350-676
 @ ./src/App.vue
 @ ./src/app.js
 @ ./src/entry-client.js

After remove options: {minimize: true} from config.client.js AND update uglify

npm i -D uglifyjs-webpack-plugin@beta

template was built

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

No branches or pull requests

1 participant