请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

vue cli3.70 启动项目就报错

vue cli3.70 项目创建没有报错 但是启动项目就报 Error: No valid exports main found for ‘D:\vue-sell-cube\node_modules\colorette’

正在回答 回答被采纳积分+3

2回答

提问者 qq_明天你好_20 2020-09-14 10:09:51

 老师这个是拷贝你的代码  项目启动94% 就报错了  错误:找不到模块is-obj


ERROR  Failed to compile with 16 errors                                                                                                    

 error  in ./src/App.vue

Module build failed (from ./node_modules/vue-loader/lib/index.js):

Error: Cannot find module 'is-obj'

Require stack:

- D:\vue3\coding-74\node_modules\dot-prop\index.js

- D:\vue3\coding-74\node_modules\@vue\component-compiler-utils\node_modules\postcss-selector-parser\dist\parser.js

- D:\vue3\coding-74\node_modules\@vue\component-compiler-utils\node_modules\postcss-selector-parser\dist\processor.js

- D:\vue3\coding-74\node_modules\@vue\component-compiler-utils\node_modules\postcss-selector-parser\dist\index.js

- D:\vue3\coding-74\node_modules\@vue\component-compiler-utils\dist\stylePlugins\scoped.js

- D:\vue3\coding-74\node_modules\@vue\component-compiler-utils\dist\compileStyle.js

- D:\vue3\coding-74\node_modules\@vue\component-compiler-utils\dist\index.js

- D:\vue3\coding-74\node_modules\vue-loader\lib\index.js

- D:\vue3\coding-74\node_modules\webpack\node_modules\loader-runner\lib\loadLoader.js

- D:\vue3\coding-74\node_modules\webpack\node_modules\loader-runner\lib\LoaderRunner.js

- D:\vue3\coding-74\node_modules\webpack\lib\NormalModule.js

- D:\vue3\coding-74\node_modules\webpack\lib\NormalModuleFactory.js

- D:\vue3\coding-74\node_modules\webpack\lib\Compiler.js

- D:\vue3\coding-74\node_modules\webpack\lib\webpack.js

- D:\vue3\coding-74\vue.config.js

- D:\vue3\coding-74\node_modules\@vue\cli-service\lib\Service.js

- D:\vue3\coding-74\node_modules\@vue\cli-service\bin\vue-cli-service.js

    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:17)


0 回复 有任何疑惑可以回复我~
提问者 qq_明天你好_20 2020-09-11 17:22:49

 ERROR  Error: No valid exports main found for 'D:\vue-sell-cude\node_modules\colorette'
Error: No valid exports main found for 'D:\vue-sell-cude\node_modules\colorette'
    at resolveExportsTarget (internal/modules/cjs/loader.js:622:9)
    at applyExports (internal/modules/cjs/loader.js:499:14)
    at resolveExports (internal/modules/cjs/loader.js:548:12)
    at Function.Module._findPath (internal/modules/cjs/loader.js:654:22)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:953:27)
    at Function.Module._load (internal/modules/cjs/loader.js:859:27)
    at Module.require (internal/modules/cjs/loader.js:1028:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (D:\vue-sell-cude\node_modules\autoprefixer\lib\autoprefixer.js:5:17)
    at Module._compile (internal/modules/cjs/loader.js:1139:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-sell-cude@0.1.0 serve: `vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-sell-cude@0.1.0 serve 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!     C:\Users\shi.jie\AppData\Roaming\npm-cache\_logs\2020-09-11T09_14_25_367Z-debug.log

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信