-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
默认模板创建的 Taro 项目若项目路径包含中文(非 ASCII 字符)则 pnpm 运行报找不到 @babel/plugin-proposal-decorators 依赖包错误 #16509
Comments
神奇了,我从 https://github.com/skyclouds2001/taro-template-sky/tree/template-error-report 这边重新下了个版本,再按流程跑了一遍,居然没报错 我再研究一下 |
应该是和项目所在路径有关,路径中含中文(非 ASCII 字符)会报错,不含就不会报错 D:\程序\taro-template-sky> pnpm dev:h5 运行报错 D:\chengxu\taro-template-sky> pnpm dev:h5 正常运行 |
This comment was marked as outdated.
This comment was marked as outdated.
很可能和项目模板中添加 @babel/plugin-proposal-class-properties 的原因类似,参见 5400d1f |
+1 |
相关平台
H5
复现仓库
https://github.com/skyclouds2001/taro-template-sky/tree/template-error-report
浏览器版本: Chrome 128
包管理器: pnpm 9.9.0
使用框架: React
复现步骤
期望结果
项目能够正常运行
实际结果
项目运行中,终端及浏览器页面均报错
报错截图及具体报错信息参见仓库根目录下 report 目录
环境信息
补充信息
可能为项目使用中某个依赖包使用到 @babel/plugin-proposal-decorators 未安装
项目中手动安装 @babel/plugin-proposal-decorators 后不再报错,项目可正常运行
The text was updated successfully, but these errors were encountered: