xugaoyi / vuepress-theme-vdoing

🚀一款简洁高效的VuePress知识管理&博客(blog)主题

Home Page:https://doc.xugaoyi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug]: 在build时总是报错,希望能优化一下错误定位,不知道是哪个md文件,文件太多了,排查太困难

aisyun opened this issue · comments

commented

vue
Field 'browser' doesn't contain a valid alias configuration
/root/VuePress/node_modules/@vuepress/core/node_modules/@SearchBox.vue doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/root/VuePress/node_modules/@vuepress/core/node_modules/@SearchBox.json doesn't exist
.styl
Field 'browser' doesn't contain a valid alias configuration
/root/VuePress/node_modules/@vuepress/core/node_modules/@searchbox.styl doesn't exist
as directory
/root/VuePress/node_modules/@vuepress/core/node_modules/@searchbox doesn't exist
looking for modules in /root/VuePress/node_modules/@vuepress/node_modules
using description file: /root/VuePress/package.json (relative path: ./node_modules/@vuepress/node_modules)
Field 'browser' doesn't contain a valid alias configuration
using description file: /root/VuePress/package.json (relative path: ./node_modules/@vuepress/node_modules/@searchbox)
no extension
Field 'browser' doesn't contain a valid alias configuration
/root/VuePress/node_modules/@vuepress/node_modules/@searchbox doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/root/VuePress/node_modules/@vuepress/node_modules/@SearchBox.js doesn't exist
.jsx
Field 'browser' doesn't contain a valid alias configuration
/root/VuePress/node_modules/@vuepress/node_modules/@SearchBox.jsx doesn't exist
.vue
Field 'browser' doesn't contain a valid alias configuration
/root/VuePress/node_modules/@vuepress/node_modules/@SearchBox.vue doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/root/VuePress/node_modules/@vuepress/node_modules/@SearchBox.json doesn't exist
.styl
Field 'browser' doesn't contain a valid alias configuration
/root/VuePress/node_modules/@vuepress/node_modules/@searchbox.styl doesn't exist
as directory
/root/VuePress/node_modules/@vuepress/node_modules/@searchbox doesn't exist
looking for modules in /root/VuePress/node_modules
using description file: /root/VuePress/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
using description file: /root/VuePress/package.json (relative path: ./node_modules/@searchbox)
no extension
Field 'browser' doesn't contain a valid alias configuration
/root/VuePress/node_modules/@searchbox doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/root/VuePress/node_modules/@SearchBox.js doesn't exist
.jsx
Field 'browser' doesn't contain a valid alias configuration
/root/VuePress/node_modules/@SearchBox.jsx doesn't exist
.vue
Field 'browser' doesn't contain a valid alias configuration
/root/VuePress/node_modules/@SearchBox.vue doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/root/VuePress/node_modules/@SearchBox.json doesn't exist
.styl
Field 'browser' doesn't contain a valid alias configuration
/root/VuePress/node_modules/@searchbox.styl doesn't exist
as directory
/root/VuePress/node_modules/@searchbox doesn't exist
looking for modules in /root/node_modules
No description file found
Field 'browser' doesn't contain a valid alias configuration
No description file found
no extension
Field 'browser' doesn't contain a valid alias configuration
/root/node_modules/@searchbox doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/root/node_modules/@SearchBox.js doesn't exist
.jsx
Field 'browser' doesn't contain a valid alias configuration
/root/node_modules/@SearchBox.jsx doesn't exist
.vue
Field 'browser' doesn't contain a valid alias configuration
/root/node_modules/@SearchBox.vue doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/root/node_modules/@SearchBox.json doesn't exist
.styl
Field 'browser' doesn't contain a valid alias configuration
/root/node_modules/@searchbox.styl doesn't exist
as directory
/root/node_modules/@searchbox doesn't exist
looking for modules in /node_modules
No description file found
Field 'browser' doesn't contain a valid alias configuration
No description file found
no extension
Field 'browser' doesn't contain a valid alias configuration
/node_modules/@searchbox doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/node_modules/@SearchBox.js doesn't exist
.jsx
Field 'browser' doesn't contain a valid alias configuration
/node_modules/@SearchBox.jsx doesn't exist
.vue
Field 'browser' doesn't contain a valid alias configuration
/node_modules/@SearchBox.vue doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/node_modules/@SearchBox.json doesn't exist
.styl
Field 'browser' doesn't contain a valid alias configuration
/node_modules/@searchbox.styl doesn't exist
as directory
/node_modules/@searchbox doesn't exist
[/root/VuePress/node_modules/@vuepress/core/lib/node/webpack/node_mod

@ multi ./node_modules/@vuepress/core/lib/client/serverEntry.js
Error: Failed to compile with errors.
at /root/VuePress/node_modules/@vuepress/core/lib/node/build/index.js:180:16
at finalCallback (/root/VuePress/node_modules/webpack/lib/MultiCompiler.js:254:12)
at /root/VuePress/node_modules/webpack/lib/MultiCompiler.js:277:6
at done (/root/VuePress/node_modules/neo-async/async.js:2931:13)
at runCompilers (/root/VuePress/node_modules/webpack/lib/MultiCompiler.js:181:48)
at /root/VuePress/node_modules/webpack/lib/MultiCompiler.js:188:7
at /root/VuePress/node_modules/webpack/lib/MultiCompiler.js:270:7
at finalCallback (/root/VuePress/node_modules/webpack/lib/Compiler.js:257:39)
at /root/VuePress/node_modules/webpack/lib/Compiler.js:273:13
at AsyncSeriesHook.eval [as callAsync] (eval at create (/root/VuePress/node_modules/tapable/lib/HookCodeFactory.js:33:10), :33:1)
at AsyncSeriesHook.lazyCompileHook (/root/VuePress/node_modules/tapable/lib/Hook.js:154:20)
at onCompiled (/root/VuePress/node_modules/webpack/lib/Compiler.js:271:21)
at /root/VuePress/node_modules/webpack/lib/Compiler.js:681:15
at AsyncSeriesHook.eval [as callAsync] (eval at create (/root/VuePress/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1)
at AsyncSeriesHook.lazyCompileHook (/root/VuePress/node_modules/tapable/lib/Hook.js:154:20)
at /root/VuePress/node_modules/webpack/lib/Compiler.js:678:31
at AsyncSeriesHook.eval [as callAsync] (eval at create (/root/VuePress/node_modules/tapable/lib/HookCodeFactory.js:33:10), :9:1)
at AsyncSeriesHook.lazyCompileHook (/root/VuePress/node_modules/tapable/lib/Hook.js:154:20)
at /root/VuePress/node_modules/webpack/lib/Compilation.js:1423:35
at AsyncSeriesHook.eval [as callAsync] (eval at create (/root/VuePress/node_modules/tapable/lib/HookCodeFactory.js:33:10), :9:1)
at AsyncSeriesHook.lazyCompileHook (/root/VuePress/node_modules/tapable/lib/Hook.js:154:20)
at /root/VuePress/node_modules/webpack/lib/Compilation.js:1414:32
at eval (eval at create (/root/VuePress/node_modules/tapable/lib/HookCodeFactory.js:33:10), :17:1)
at /root/VuePress/node_modules/terser-webpack-plugin/dist/index.js:321:9
at step (/root/VuePress/node_modules/terser-webpack-plugin/dist/TaskRunner.js:87:9)
at done (/root/VuePress/node_modules/terser-webpack-plugin/dist/TaskRunner.js:98:30)
at tryCatcher (/root/VuePress/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/root/VuePress/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/root/VuePress/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/root/VuePress/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/root/VuePress/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/root/VuePress/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/root/VuePress/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/root/VuePress/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues (/root/VuePress/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (internal/timers.js:464:21)

commented

同样遇到该问题

commented

找到问题了,原来时路径中有中文,不知道为什么mac环境下时支持的,windows上却不行。

commented

找到问题了,原来时路径中有中文,不知道为什么mac环境下时支持的,windows上却不行。

我刚好,相反,Mac上出现的这个问题,卸载了几个默认安装的插件,再指定版本安装了一个插件就又行了。其实就是插件兼容性造成的。