devrnt / react-use-wizard

🧙 A React wizard (stepper) builder without the hassle, powered by hooks.

Home Page:https://devrnt.github.io/react-use-wizard/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SyntaxError: Cannot use import statement outside a module

screeny05 opened this issue · comments

I'm trying to use this package with astro@2.7.0.

Unfortunately astro is not able to import this package, due to this lint-error:

/dist/react-use-wizard.esm.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. ./dist/react-use-wizard.esm.mjs

Source:

https://publint.dev/react-use-wizard@2.2.1

Greetings!

Getting the same issue when trying to mock it in Jest.

commented

I'm getting the same problem when I try run a unit test with jest

"next": "^13.4.1",
"jest": "29.5.0",

Fixed in #167