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

[Bug Report][3.1.13] Error building from a fresh project, "Cannot find module '@babel/types' #20

Closed
GreenStorm opened this issue Apr 10, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@GreenStorm
Copy link

GreenStorm commented Apr 10, 2023

Environment

Vuetify Version: 3.1.13
Vue Version: 3.3.0-alpha.9
Browsers: Firefox 111.0
OS: Windows 10

Steps to reproduce

Reproduction steps:

yarn create vuetify
√ Project name: ... vuetify-project
√ Which preset would you like to install? » Essentials (Vuetify, VueRouter, Pinia)
√ Use TypeScript? Yes
√ Would you like to install dependencies with yarn, npm, or pnpm? » npm

npm run dev
= works fine.

npm run build
`Found 18 errors in 5 files.

Errors Files
1 node_modules/@babel/parser/typings/babel-parser.d.ts:3
6 node_modules/@vue/compiler-core/dist/compiler-core.d.ts:1
1 node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts:20
4 node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts:1
6 node_modules/vuetify/lib/components/index.d.ts:26992`

Cannot find module '@babel/types' or its corresponding type declarations.

Expected Behavior

"npm run build" works on a fresh build

Actual Behavior

"Cannot find module '@babel/types' or its corresponding type declarations.", when trying to build a fresh installation by create vuetify

Reproduction Link

https://github.com/GreenStorm/CreateVuetifyBuildError

Other comments

  • Even if you run npm install then npm run build , it gives the same errors.
  • Yarn is the same issue too.
  • Upgraded both yarn and npm to the latest, same errors.
  • When adding the babel module, it will result into another error/
@KaelWD KaelWD transferred this issue from vuetifyjs/vuetify Apr 10, 2023
@johnleider
Copy link
Member

fixed by 69f0111 and vuetifyjs/vuetify@0709890

@johnleider johnleider self-assigned this Apr 10, 2023
@johnleider johnleider added the bug Something isn't working label Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants