ITADN

Error [ERR_REQUIRE_ESM]: require() of ES Module

#90Closedjoao-offerfit 创建于 2024-10-17
J
joao-offerfitcommented
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](https://github.com/xojs/xo/issues/768)) 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
关闭于 2024-10-18 5 条评论