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

vite-jest fails to import module chunks? #12

Open
bstro opened this issue Jul 14, 2021 · 2 comments
Open

vite-jest fails to import module chunks? #12

bstro opened this issue Jul 14, 2021 · 2 comments

Comments

@bstro
Copy link

bstro commented Jul 14, 2021

running vite-jest 0.0.3, seeing the following issue:
image

Same setup/configuration as in #11 — I am not sure if this issue is related, the error message looked different enough for me to break this out in to a separate ticket.

Edit: I wonder if this may have something to do with yarn workspaces, and that these dependencies are hoisted into the root node_modules.

@bstro bstro changed the title vite-jest fails to import react chunks? vite-jest fails to import module chunks? Jul 14, 2021
@jmorel
Copy link

jmorel commented Jul 15, 2021

This may be unrelated, but I had the very same issue when using node 14.14.* , I solved it by switching to node 14.17.*

@jamesg1
Copy link

jamesg1 commented Jul 30, 2021

@bstro It appears the js and jsx declarations cause issues - fix here https://github.com/sodatea/vite-jest/pull/16/files

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