Closed linzukon closed 7 years ago
same error
same error
same error
same error
亲测没有任何问题,检查你们的安装是否正确,最好使用npm。
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. 可能是因为新版本原因,可以说一下你用的是哪个版本吗?
我使用的webpack版本是
npm版本是 但是报错了
更新一下再试试吧,加了个webpack-dev-server,但应该不是这个原因,最好不要使用cnpm,没有在cnpm上测试过,建议连VPN使用npm安装
npm也是这样的错误
"npm run dev" error logs: WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
npm ERR! Windows_NT 10.0.10240 npm ERR! argv "C:\dev\nodejs\node.exe" "C:\Users\58212\AppData\Roaming\npm\node_modules\cnpm\node_modules\npm\bin\npm-cli.js" "--userconfig=C:\Users\58212\.cnpmrc" "--disturl=https://npm.taobao.org/mirrors/node" "--registry=https://registry.npm.taobao.org" "run" "dev" npm ERR! node v6.9.4 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! iview-project@1.0.2 dev:
webpack-dev-server --inline --hot --compress --history-api-fallback --config webpack.dev.config.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the iview-project@1.0.2 dev script 'webpack-dev-server --inline --hot --compress --history-api-fallback --config webpack.dev.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 iview-project package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! webpack-dev-server --inline --hot --compress --history-api-fallback --config webpack.dev.config.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs iview-project npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls iview-project npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request: npm ERR! C:\Users\58212\Desktop\workspace\iview-project\npm-debug.log