vuetifyjs/create

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

GreenStorm opened this issue · 1 comments

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/