vue-bulma / vue-admin

We are refactoring it, using the latest Vue and Bulma. WIP
9.43k stars 1.61k forks source link

laravel + vue-admin 报错 #174

Open milian221 opened 7 years ago

milian221 commented 7 years ago
This dependency was not found:

* !!vue-style-loader!css-loader?sourceMap!../../vue-loader/lib/style-rewriter?{"id":"data-v-c90601f4","scoped":false,"hasInlineConfig":true}!styl-loader!../../vue-loader/lib/selector?type=styles&index=0!./Quill.vue in ./~/vue-bulma-quill/src/Quill.vue

To install it, you can run: npm install --save !!vue-style-loader!css-loader?sourceMap!../../vue-loader/lib/style-rewriter?{"id":"data-v-c90601f4","scoped":false,"hasInlineConfig":true}!styl-loader!../../vue-loader/lib/selector?type=styles&index=0!

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
npm ERR! node v7.7.1
npm ERR! npm  v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! vue-admin@0.1.12 dev: `node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the vue-admin@0.1.12 dev script 'node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the vue-admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs vue-admin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls vue-admin
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\WTServer\WWW\demovue2\npm-debug.log

@fundon 有遇到过这错误么 是我 webpack 配置出错了 还是版本组件冲突?

milian221 commented 7 years ago

vue-bulma-quill/src/Quill.vue 模板有 lang=styl 解析error 为什么 会自动加载 styl-loader

ssh-keyz commented 7 years ago

npm install --save !!vue-style-loader!css-loader?sourceMap!../../vue-loader/lib/style-rewriter?{"id":"data-v-c90601f4","scoped":false,"hasInlineConfig":true}!styl-loader!../../vue-loader/lib/selector?type=styles&index=0!

milian221 commented 7 years ago

好像是因为 styl-loader!../../vue-loader/lib/selector?type=styles&index=0! styl-loader 找不到 为什么会加载styl-loader

fundon commented 7 years ago

Should install

    "stylus": "^0.54.5",
    "stylus-loader": "^2.4.0"

See https://github.com/vuejs/vue-hackernews-2.0/blob/master/build/webpack.client.config.js#L37-L42.

milian221 commented 7 years ago

@fundon

stylus:0.54.5
stylus-loader: 2.5.0

版本是满足的 . 是不是因为laravel-min 使用 webpack module.rules[] 配置选项了呢?

milian221 commented 7 years ago

@fundon 是这样的!! rules配置 覆盖了 loaders配置 但是出现 #118 一样的问题了

milian221 commented 7 years ago
WIndows10
$ node@v7.7.1
$ npm@4.1.2
$ webpack@2.2.1

都试过了还是不行 #

milian221 commented 7 years ago
$ npm update -d
npm info it worked if it ends with ok
npm info using npm@4.1.2
npm info using node@v7.7.1
......
+-- babel-loader@6.4.0
+-- css-loader@0.26.4
+-- eslint@3.17.1
+-- eslint-config-standard@7.0.1
+-- express@4.15.2
+-- plotly.js@1.24.1
+-- sass-loader@6.0.3
+-- stylus-loader@2.5.1
+-- vue@2.2.2
`-- vue-template-compiler@2.2.2

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm info ok
milian221 commented 7 years ago

@fundon @tylerjheslop 完美解决了 谢谢你们