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

esm 模块导出错误,导致vite使用esm引入时,报错 #389

Open
pk111and222 opened this issue Nov 28, 2023 · 0 comments
Open

esm 模块导出错误,导致vite使用esm引入时,报错 #389

pk111and222 opened this issue Nov 28, 2023 · 0 comments

Comments

@pk111and222
Copy link

Describe the bug
chrome report "Dynamic require of is not supported"

Additional context
i find the es module export file use the lib/index.js. this file have some code like "require("./styles/index.less");" ,its include a keyword "require"; so if we change the esmodule export dir to /es/index.js. maybe can run normal。

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