Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aisyun opened this issue Apr 17, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@aisyun
Copy link

aisyun commented Apr 17, 2023

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)

@aisyun aisyun added the bug Something isn't working label Apr 17, 2023
@Howietron
Copy link

同样遇到该问题

@Howietron
Copy link

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

@aisyun
Copy link
Author

aisyun commented May 11, 2023

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants