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] require() of ES modules is not supported #109

Closed
shifengdiy opened this issue Feb 23, 2023 · 1 comment
Closed

[bug] require() of ES modules is not supported #109

shifengdiy opened this issue Feb 23, 2023 · 1 comment

Comments

@shifengdiy
Copy link

in nodejs12 and higher version, if package.json type="module", all .js files in that package scope as ES modules.
it's not supported require()
please change require into import, or remove type="module"

in /dist file still use require,hope fix it, thanks

@lamorttu
Copy link

lamorttu commented Sep 4, 2023

I have the same problem. I hope you can solve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants