vuepress icon indicating copy to clipboard operation
vuepress copied to clipboard

文件名是中文, docs:build就报错。英文名就正常。

Open wgf4242 opened this issue 4 years ago • 2 comments

比如2020-强网杯.md 报下面的错误。 改成英文名直接通过。 Mac和windows报错情况不同。

Macos下的报错情况

wait Rendering static HTML...
RangeError: Maximum call stack size exceeded
    at getConstructorName (internal/util/inspect.js:554:9)
    at formatRaw (internal/util/inspect.js:822:23)
    at formatValue (internal/util/inspect.js:812:10)
    at inspect (internal/util/inspect.js:337:10)
    at formatWithOptionsInternal (internal/util/inspect.js:2016:40)
    at formatWithOptions (internal/util/inspect.js:1898:10)
    at console.value (internal/console/constructor.js:330:14)
    at console.warn (internal/console/constructor.js:363:61)
    at abort (/Users/wudi/Documents/Projects/text/node_modules/vue-router/dist/vue-router.common.js:2081:17)
    at iterator (/Users/wudi/Documents/Projects/text/node_modules/vue-router/dist/vue-router.common.js:2145:7)
    at step (/Users/wudi/Documents/Projects/text/node_modules/vue-router/dist/vue-router.common.js:1848:9)
    at runQueue (/Users/wudi/Documents/Projects/text/node_modules/vue-router/dist/vue-router.common.js:1856:3)
    at AbstractHistory.confirmTransition (/Users/wudi/Documents/Projects/text/node_modules/vue-router/dist/vue-router.common.js:2149:3)
    at AbstractHistory.transitionTo (/Users/wudi/Documents/Projects/text/node_modules/vue-router/dist/vue-router.common.js:2036:8)
    at AbstractHistory.push (/Users/wudi/Documents/Projects/text/node_modules/vue-router/dist/vue-router.common.js:2589:10)
    at /Users/wudi/Documents/Projects/text/node_modules/vue-router/dist/vue-router.common.js:2137:20
error Error rendering /ctf/writeup/2020-强网杯.html: false
undefined
ReferenceError: pageMeta is not defined
    at Object.eval [as head] (eval at <anonymous> (/Users/wudi/Documents/Projects/text/node_modules/lodash.template/index.js:1550:12), <anonymous>:16:11)
    at TemplateRenderer.render (/Users/wudi/Documents/Projects/text/node_modules/vue-server-renderer/build.dev.js:8973:16)
    at RenderContext.done (/Users/wudi/Documents/Projects/text/node_modules/vue-server-renderer/build.dev.js:9225:42)
    at RenderContext.next (/Users/wudi/Documents/Projects/text/node_modules/vue-server-renderer/build.dev.js:2601:19)
    at RenderContext.cachedWrite [as write] (/Users/wudi/Documents/Projects/text/node_modules/vue-server-renderer/build.dev.js:2464:9)
    at RenderContext.next (/Users/wudi/Documents/Projects/text/node_modules/vue-server-renderer/build.dev.js:2615:25)
    at RenderContext.cachedWrite [as write] (/Users/wudi/Documents/Projects/text/node_modules/vue-server-renderer/build.dev.js:2464:9)
    at RenderContext.next (/Users/wudi/Documents/Projects/text/node_modules/vue-server-renderer/build.dev.js:2615:25)
    at RenderContext.cachedWrite [as write] (/Users/wudi/Documents/Projects/text/node_modules/vue-server-renderer/build.dev.js:2464:9)
    at RenderContext.next (/Users/wudi/Documents/Projects/text/node_modules/vue-server-renderer/build.dev.js:2615:25)
    at RenderContext.cachedWrite [as write] (/Users/wudi/Documents/Projects/text/node_modules/vue-server-renderer/build.dev.js:2464:9)
    at RenderContext.next (/Users/wudi/Documents/Projects/text/node_modules/vue-server-renderer/build.dev.js:2615:25)
    at cachedWrite (/Users/wudi/Documents/Projects/text/node_modules/vue-server-renderer/build.dev.js:2464:9)
    at renderElement (/Users/wudi/Documents/Projects/text/node_modules/vue-server-renderer/build.dev.js:8563:5)
    at RenderContext.renderNode (/Users/wudi/Documents/Projects/text/node_modules/vue-server-renderer/build.dev.js:8325:5)
    at RenderContext.next (/Users/wudi/Documents/Projects/text/node_modules/vue-server-renderer/build.dev.js:2611:23)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ docs:build: `vuepress build docs`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ docs:build 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!     /Users/wudi/.npm/_logs/2021-07-23T11_46_40_969Z-debug.log

Windows报错。。

D:\wgf\My Documents\GitHub\blog\vuepress-starter>npx vuepress build docs
wait Extracting site metadata...
tip Apply theme vuepress-theme-reco ...
tip Apply plugin container (i.e. "vuepress-plugin-container") ...
tip Apply plugin @vuepress/register-components (i.e. "@vuepress/plugin-register-components") ...
tip Apply plugin @vuepress-reco/back-to-top (i.e. "@vuepress-reco/vuepress-plugin-back-to-top") ...
tip Apply plugin @vuepress-reco/loading-page (i.e. "@vuepress-reco/vuepress-plugin-loading-page") ...
tip Apply plugin @vuepress-reco/pagation (i.e. "@vuepress-reco/vuepress-plugin-pagation") ...
tip Apply plugin @vuepress-reco/comments (i.e. "@vuepress-reco/vuepress-plugin-comments") ...
tip Apply plugin @vuepress/active-header-links (i.e. "@vuepress/plugin-active-header-links") ...
tip Apply plugin @vuepress/medium-zoom (i.e. "@vuepress/plugin-medium-zoom") ...
tip Apply plugin @vuepress/nprogress (i.e. "@vuepress/plugin-nprogress") ...
tip Apply plugin @vuepress/blog (i.e. "@vuepress/plugin-blog") ...
tip Apply plugin smooth-scroll (i.e. "vuepress-plugin-smooth-scroll") ...

√ Client
  Compiled successfully in 11.28s

√ Server
  Compiled successfully in 7.82s

wait Rendering static HTML...
RangeError: Maximum call stack size exceeded
    at Object.stylizeWithColor [as stylize] (internal/util/inspect.js:522:33)
    at formatError (internal/util/inspect.js:1236:30)
    at formatRaw (internal/util/inspect.js:950:14)
    at formatValue (internal/util/inspect.js:804:10)
    at inspect (internal/util/inspect.js:337:10)
    at formatWithOptionsInternal (internal/util/inspect.js:2008:40)
    at formatWithOptions (internal/util/inspect.js:1890:10)
    at console.value (internal/console/constructor.js:330:14)
    at console.warn (internal/console/constructor.js:363:61)
    at abort (D:\wgf\My Documents\GitHub\blog\vuepress-starter\node_modules\vue-router\dist\vue-router.common.js:2081:17)
    at iterator (D:\wgf\My Documents\GitHub\blog\vuepress-starter\node_modules\vue-router\dist\vue-router.common.js:2145:7)
    at step (D:\wgf\My Documents\GitHub\blog\vuepress-starter\node_modules\vue-router\dist\vue-router.common.js:1848:9)
    at runQueue (D:\wgf\My Documents\GitHub\blog\vuepress-starter\node_modules\vue-router\dist\vue-router.common.js:1856:3)
    at AbstractHistory.confirmTransition (D:\wgf\My Documents\GitHub\blog\vuepress-starter\node_modules\vue-router\dist\vue-router.common.js:2149:3)
    at AbstractHistory.transitionTo (D:\wgf\My Documents\GitHub\blog\vuepress-starter\node_modules\vue-router\dist\vue-router.common.js:2036:8)
    at AbstractHistory.push (D:\wgf\My Documents\GitHub\blog\vuepress-starter\node_modules\vue-router\dist\vue-router.common.js:2589:10)

wgf4242 avatar Jul 23 '21 11:07 wgf4242

Some explanation in English would help.

tb102122 avatar Aug 30 '21 03:08 tb102122

文件名请问英文,谢谢!

chybcool avatar Aug 10 '22 14:08 chybcool