Open pnwcoder2020 opened 3 years ago
I am getting a very similar issue specifically when testing React components following the same example. In this case, react-hook-form seems to be the offender.
I can post more details if that is helpful
Maybe more related to #11 though now that I read through it
Edit: for clarification this is using npm v7.19.0
I think this is a Yarn 2 specific problem, and to be more specific this is because Yarn 2 cannot currently run ES Modules.
See https://github.com/yarnpkg/berry/issues/638
When I try to run the example with pnpm it works, but not using yarn
@mijamo The error in my screenshot was with npm v7.19.0. I have not tried pnpm, although I did observe the same issue with Yarn 2 as you indicated as well.
Thank you for your work on this package and apologies in advance if this issue is the result of user error.
I see the following error in the example react-app-ts and also when incorporating
vite-jest
into my own react app.