-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Error [ERR_REQUIRE_ESM]: require() of ES Module #90
Comments
I ran Either way, this is not a problem with this config. |
Check out the readme on this repo. If you use XO, you can't use it together with this config because this is a eslint config, not an xo config. I think the main issue is that this is a flat config while XO itself hasn't been updated to use it yet. |
Makes sense! Thanks for clarifying! |
You gave me an incredible idea... It works if I use v5 (which does not use flat config). Thank you so much for that! |
Hello guys,
I'm integrating XO under a Vue project using the XO CLI, and I'm having a hard time while trying to apply XO typescript rules under .vue files.
I already found a solution that require changes in the XO CLI (issue)
Meanwhile, I am trying to extend
xo-typescript
into.vue
files, so I can achieve the same result (even if it's redundant as XO have it already bundled)I am consistently receiving the error:
Error [ERR_REQUIRE_ESM]: require() of ES Module
I made a repo from scratch where it is possible to reproduce the issue. Could someone help me understand why this happens?
Repo: https://github.com/joao-offerfit/vue-xo-demo
The text was updated successfully, but these errors were encountered: