发布于 5年前

webpack-cli找不到module 'D:\quill\_develop\webpack.config.js;'

D:quill_developwebpack.config.js 这个文件明明是存在的,路径也没错,就是提示找不到,求解!谢谢!

D:quill>yarn build
yarn run v1.3.2
$ yarn build:webpack
$ webpack --config ./_develop/webpack.config.js; rm dist/quill.core dist/quill.bubble dist/quill.snow
D:quillnode_moduleswebpack-clibincli.js:74
 throw err;
     ^
Error: Cannot find module 'D:quill_developwebpack.config.js;'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (D:\quill\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
at WEBPACK_OPTIONS (D:\quill\node_modules\webpack-cli\bin\utils\convert-argv.js:115:13)
at requireConfig (D:\quill\node_modules\webpack-cli\bin\utils\convert-argv.js:117:6)
at D:\quill\node_modules\webpack-cli\bin\utils\convert-argv.js:124:17
at Array.forEach (<anonymous>)
at module.exports (D:\quill\node_modules\webpack-cli\bin\utils\convert-argv.js:122:15)
at yargs.parse (D:\quill\node_modules\webpack-cli\bin\cli.js:71:45)
at Object.parse (D:\quill\node_modules\yargs\yargs.js:567:18)
at D:\quill\node_modules\webpack-cli\bin\cli.js:49:8
at Object.<anonymous> (D:\quill\node_modules\webpack-cli\bin\cli.js:375:3)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\quill\node_modules\webpack\bin\webpack.js:156:2)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/c... for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/c... for documentation about this command.

解决方案:

build:webpack": "webpack --config _develop/webpack.config.js; rm dist/quill.core dist/quill.bubble dist/quill.snow命令中的; rm dist/quill.core dist/quill.bubble dist/quill.snow删掉即可。

©2020 edoou.com   京ICP备16001874号-3