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

[2.x]build出问题 #58

Closed
googidaddy opened this issue May 15, 2022 · 3 comments
Closed

[2.x]build出问题 #58

googidaddy opened this issue May 15, 2022 · 3 comments

Comments

@googidaddy
Copy link

moduleIdentifier: "/Users/sicko/blog/test-blog/sicko's blog/.vuepress/.temp/internal/clientAppEnhances.js",
  moduleName: './.vuepress/.temp/internal/clientAppEnhances.js',
  loc: '1:65',
  message: 'Module parse failed: Unexpected token (1:65)\n' +
    'You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders\n' +
    "> import clientAppEnhance0 from '/Users/sicko/blog/test-blog/sicko's blog/node_modules/@vuepress/plugin-theme-data/lib/client/clientAppEnhance.js'\n" +
    "| import clientAppEnhance1 from '/Users/sicko/blog/test-blog/sicko's blog/node_modules/@vuepress/plugin-search/lib/client/clientAppEnhance.js'\n" +
    "| import clientAppEnhance2 from '/Users/sicko/blog/test-blog/sicko's blog/node_modules/@vuepress/plugin-external-link-icon/lib/client/clientAppEnhance.js'",

Error: Failed to compile with errors at /Users/sicko/blog/test-blog/sicko's blog/node_modules/@vuepress/bundler-webpack/lib/build/createBuild.js:37:28 at /Users/sicko/blog/test-blog/sicko's blog/node_modules/webpack/lib/webpack.js:148:8 at /Users/sicko/blog/test-blog/sicko's blog/node_modules/neo-async/async.js:2830:7 at done (/Users/sicko/blog/test-blog/sicko's blog/node_modules/neo-async/async.js:2865:11) at /Users/sicko/blog/test-blog/sicko's blog/node_modules/neo-async/async.js:2818:7 at /Users/sicko/blog/test-blog/sicko's blog/node_modules/webpack/lib/HookWebpackError.js:68:3 at _done (eval at create (/Users/sicko/blog/test-blog/sicko's blog/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:9:1) at eval (eval at create (/Users/sicko/blog/test-blog/sicko's blog/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:34:22)
似乎没解决这个问题,版本均是最新的。

@googidaddy
Copy link
Author

已更新最新的0.8版本,本地是正常的,build的时候报错显示window is not defined.
ReferenceError: window is not defined at /Users/sicko/blog/test/.vuepress/.temp/.server/app.js:24358:9 at /Users/sicko/blog/test/.vuepress/.temp/.server/app.js:24355:44 at e.exports (/Users/sicko/blog/test/.vuepress/.temp/.server/app.js:24370:112) at Object.<anonymous> (/Users/sicko/blog/test/.vuepress/.temp/.server/app.js:24202:13) at t (/Users/sicko/blog/test/.vuepress/.temp/.server/app.js:20275:22) at Object.<anonymous> (/Users/sicko/blog/test/.vuepress/.temp/.server/app.js:24417:7) at t (/Users/sicko/blog/test/.vuepress/.temp/.server/app.js:20275:22) at /Users/sicko/blog/test/.vuepress/.temp/.server/app.js:20291:20 at /Users/sicko/blog/test/.vuepress/.temp/.server/app.js:20292:6 at /Users/sicko/blog/test/.vuepress/.temp/.server/app.js:20268:22

@recoluan
Copy link
Member

recoluan commented Jun 7, 2022

使用 vuepress@2.0.0-beta.46 和 vuepress-theme-reco@2.0.0-beta.16 试一下呢(记得清除缓存)。

@googidaddy
Copy link
Author

更新后解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants