vue2.5版本源代码编译报 Could not load ..vuesrccore/config 错误的问题

Posted waihoyu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vue2.5版本源代码编译报 Could not load ..vuesrccore/config 错误的问题相关的知识,希望对你有一定的参考价值。

前置说明:

日期:2018年6月5日

环境:win7系统、vscode、vue2.5.0源代码

 

1)问题现象:

技术分享图片

D:\\workspace\\html5\\everyday2\\vue>npm run dev

> [email protected] dev D:\\workspace\\html5\\everyday2\\vue
> rollup -w -c build/config.js --environment TARGET:web-full-dev

rollup v0.50.0
bundles D:\\workspace\\html5\\everyday2\\vue\\src\\platforms\\web\\entry-runtime-with-compiler.js → dist\\vue.js...
[!] Error: Could not load D:\\workspace\\html5\\everyday2\\vue\\src\\core/config (imported by D:\\workspace\\html5\\everyday2\\vue\\src\\platforms\\web\\entry-runtime-with-compiler.js): ENOENT: no such file or directory, open ‘D:\\workspace\\html5\\everyday2\\vue\\src\\core\\config‘
Error: Could not load D:\\workspace\\html5\\everyday2\\vue\\src\\core/config (imported by D:\\workspace\\html5\\everyday2\\vue\\src\\platforms\\web\\entry-runtime-with-compiler.js): ENOENT: no such file or directory, open ‘D:\\workspace\\html5\\everyday2\\vue\\src\\core\\config‘
at load.catch.err (D:\\workspace\\html5\\everyday2\\vue\\node_modules\\rollup\\dist\\rollup.js:9973:11)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:182:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:697:11)
at startup (internal/bootstrap/node.js:201:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:516:3)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `rollup -w -c build/config.js --environment TARGET:web-full-dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev 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\\lenovo\\AppData\\Roaming\\npm-cache\\_logs\\2018-06-05T10_56_08_535Z-debug.log

 

2)问题解决方案:

https://segmentfault.com/q/1010000007561786

 


















以上是关于vue2.5版本源代码编译报 Could not load ..vuesrccore/config 错误的问题的主要内容,如果未能解决你的问题,请参考以下文章

EasyNTS编译报错“fatal: could not read Username for ‘https://gitee.com‘: terminal prompts disabled”

错误记录Android Studio 编译报错 ( Could not determine java version from ‘11.0.8‘. | Android Studio 降级 )(代码片段

错误记录Android Studio 编译报错 ( Could not determine java version from ‘11.0.8‘. | Android Studio 降级 )(代码片段

错误记录Android Studio 编译时 lint 检查报错 ( Could not resolve junit:junit:4.+. )

使用 Gradle 编译 Java 项目时报错: Could not find Tools.jar

错误记录Android Studio 编译报错 ( Could not find com.android.tools.build:gradle:4.2.1. )