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

ES module error #15

Closed
ThibaultVlacich opened this issue Jan 7, 2024 · 3 comments
Closed

ES module error #15

ThibaultVlacich opened this issue Jan 7, 2024 · 3 comments

Comments

@ThibaultVlacich
Copy link

ThibaultVlacich commented Jan 7, 2024

I'm getting this error coming from this package:

require is not defined in ES module scope, you can use import instead This file is being treated as an ES module because it has a '.js' file extension and './node_modules/bootstrap-icons-vue/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.

I think it appeared with a Vite update, but I can't be really sure. Any idea if there's something I can do in my config to fix this, or if the package needs to be updated?

@tobiasquadflieg
Copy link
Contributor

#14 I just add a new pr that should solve the issue.

@tommyip
Copy link
Owner

tommyip commented Jan 26, 2024

Just published v1.11.3 with @tobiasquadflieg's patch. @ThibaultVlacich does it fixes the issue?

@ThibaultVlacich
Copy link
Author

Yes, it's fixed :) Thanks.

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

3 participants