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

Cannot find module '@babel/preset-env' #546

Open
nwoltman opened this issue Jun 26, 2023 · 0 comments
Open

Cannot find module '@babel/preset-env' #546

nwoltman opened this issue Jun 26, 2023 · 0 comments

Comments

@nwoltman
Copy link

When using vue3-jest in a project that does not have @babel/preset-env as a dependency, vue3-jest throws the error:

Cannot find module '@babel/preset-env'
Require stack:
    - node_modules/@babel/core/lib/config/files/plugins.js
    - node_modules/@babel/core/lib/config/files/index.js
    - node_modules/@babel/core/lib/index.js
    - node_modules/@vue/vue3-jest/lib/process.js
    - node_modules/@vue/vue3-jest/lib/index.js
    - node_modules/jest-util/build/requireOrImportModule.js
    - node_modules/jest-util/build/index.js
    - node_modules/jest-resolve/build/resolver.js
    - node_modules/jest-resolve/build/index.js
    - node_modules/jest-runtime/build/index.js
    - node_modules/jest-runner/build/testWorker.js
    - node_modules/jest-worker/build/workers/processChild.js

I believe this is due to this code which tells babel to use @babel/preset-env but vue3-jest doesn't include it as a dependency.

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

1 participant