-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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] .umi/core/helmet.ts 自动生成时未正确处理 Windows 路径中的单引号导致语法错误 #12934
Comments
由于缺乏足够的信息,我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。 |
文件夹命名的时候是不允许使用单引号的,这个用户名就很夸张 |
所以感觉这个bug基本改不了,其实不用在用户名目录下就可以了。 |
@leelynnjaytop 你可以尝试修复一下,在这里修改即可。packages/utils/src/winPath.ts 我试了我的window电脑,不知道怎么搞出这个用户名 |
建一个 /Use'r/ 这种带 ' 的文件夹,在里面操作就能复刻了 |
只要加一个单引号就可以了吗?我可以试试 。#12965 |
What happens?
当项目路径包含单引号 ' 时(例如 C:/Users/Jeri'o/...),Umi 自动生成的 polyfill.ts 文件中的导入路径字符串会因未转义单引号导致语法错误,具体报错如下:
How To Reproduce
npx create-umi@latest
项目github仓库:https://github.com/leelynnjaytop/umi
在线复现链接:https://1024code.com/~lilinjie/nry6osa
Context
可能的解决方案建议
The text was updated successfully, but these errors were encountered: