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

[bug]Uncaught SyntaxError: Identifier "module has already been declared #1766

Open
hjzheng opened this issue Jan 26, 2025 · 0 comments
Open

Comments

@hjzheng
Copy link

hjzheng commented Jan 26, 2025

Describe the bug

在 umi 中启用 mako, npm run dev 后会有页面 load js 出错,未开启的情况下 loadjs 页面正常,错误如下图所示

Image

发现由于在两个js文件中,在代码中声明了变量 const module = 'preProcessing' 导致了冲突,修改后module 变量为 moduleName。
这个 module 似乎对 mako 来说是关键字

Reproduction

在至少两个js文件中,在代码中都声明了变量 const module = 'preProcessing'

Logs

Severity

serious, but I can work around it

Additional Information

No response

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

1 participant