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

存在相同名称的导入时,mako 没有报错 #1694

Open
hualigushi opened this issue Nov 18, 2024 · 1 comment
Open

存在相同名称的导入时,mako 没有报错 #1694

hualigushi opened this issue Nov 18, 2024 · 1 comment
Assignees

Comments

@hualigushi
Copy link
Contributor

hualigushi commented Nov 18, 2024

截屏2024-11-18 17 27 17

问题:文件中存在相同名称的导入时,mako 下没有报错
预期:希望报错
复现仓库:https://github.com/hualigushi/mako-style, src/Home

Copy link

在 umijs/mako 的问题列表中,我没有找到与您描述的“相同名称的导入没有报错”直接相关的已知问题或修复。这个问题可能是一个新的情况。

建议您可以在项目中手动检查导入的模块名称,确保没有重复的导入。如果您希望 mako 能够在这种情况下自动报错,可能需要在代码中添加额外的检查逻辑,或者在构建工具链中引入静态分析工具来捕获此类问题。

如果您有进一步的需求或问题,请随时告诉我。

如需进一步帮助,请在评论中描述您的问题并@petercat-assistant与我开始对话。

@Jinbao1001 Jinbao1001 self-assigned this Dec 4, 2024
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