core icon indicating copy to clipboard operation
core copied to clipboard

[Bug report] @vuepress/themeDefault 获取cssVariables.mobile是undefined 导致通过cli创建的项目预览失败

Open xiguan-wuge opened this issue 1 year ago • 5 comments

Description

复现步骤: 采用vuepress2 文档示例中的【创建示例】步骤创建的项目

  1. 选择了webpack
  2. 初始化完成后,需要自行再安装sass-loader (这个建议在cli中添加,以免用户再额外添加loader)
  3. pnpm run docs:dev 报错:
Image

Reproduction

https://github.com/xiguan-wuge/vuepress2demo

Used Package Manager

pnpm

System Info

devDependencies:
+ @vuepress/bundler-webpack 2.0.0-rc.7
+ @vuepress/theme-default 2.0.0-rc.85
+ sass 1.86.0
+ sass-loader 16.0.5
+ vue 3.5.13
+ vuepress 2.0.0-rc.20

Done in 5.5s using pnpm v10.6.4

xiguan-wuge avatar Mar 18 '25 23:03 xiguan-wuge

Rc7?

Mister-Hope avatar Mar 19 '25 15:03 Mister-Hope

Hello @xiguan-wuge. Please provide a minimal reproduction using a GitHub repository or vuepress.vuejs.org/new. Issues marked with need reproduction will be closed if they have no activity within 7 days.

github-actions[bot] avatar Mar 19 '25 15:03 github-actions[bot]

我更新@vuepress/bundler-webpack 到2.0.0-rc.20,项目就可以正常预览了 @Mister-Hope

xiguan-wuge avatar Mar 19 '25 16:03 xiguan-wuge

Hello @xiguan-wuge. This issue is marked as invalid and closed. Please follow the issue template.

github-actions[bot] avatar Mar 19 '25 18:03 github-actions[bot]

https://github.com/vuepress/ecosystem/issues/407

Mister-Hope avatar Mar 19 '25 18:03 Mister-Hope