On a fresh vuetify 3 project, building fails after adding unplugin-vue-compoents.
Reproduction:
create vuetify project
pnpm create vuetify
.../Local/pnpm/store/v3/tmp/dlx-68692 | +11 +
.../Local/pnpm/store/v3/tmp/dlx-68692 | Progress: resolved 11, reused 11, downloaded 0, added 11, done
Vuetify.js - Material Component Framework for Vue
√ Project name: ... vuetify-project
√ Which preset would you like to install? » Essentials (Vuetify, VueRouter, Pinia)
√ Use TypeScript? ... No / Yes
√ Would you like to install dependencies with yarn, npm, pnpm, or bun? » pnpm
// try to build
pnpm build
> vuetify-project@0.0.0 build C:\Users\hendrikbl\projects\vuetify-project
> vue-tsc --noEmit && vite build
node_modules/.pnpm/unplugin@1.5.0/node_modules/unplugin/dist/index.d.ts:1:47 - error TS2307: Cannot find module '@rspack/core/dist/config/zod' or its corresponding type declarations.
1 import * as _rspack_core_dist_config_zod from '@rspack/core/dist/config/zod';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/unplugin@1.5.0/node_modules/unplugin/dist/index.d.ts:2:26 - error TS2307: Cannot find module 'webpack' or its corresponding type declarations.
2 import * as webpack from 'webpack';
~~~~~~~~~
node_modules/.pnpm/unplugin@1.5.0/node_modules/unplugin/dist/index.d.ts:3:49 - error TS2307: Cannot find module 'webpack' or its corresponding type declarations.
3 import { Compiler, WebpackPluginInstance } from 'webpack';
~~~~~~~~~
node_modules/.pnpm/unplugin@1.5.0/node_modules/unplugin/dist/index.d.ts:4:68 - error TS2307: Cannot find module 'webpack' or its corresponding type declarations.
4 export { Compiler as WebpackCompiler, WebpackPluginInstance } from 'webpack';
~~~~~~~~~
node_modules/.pnpm/unplugin@1.5.0/node_modules/unplugin/dist/index.d.ts:14:62 - error TS2307: Cannot find module '@rspack/core' or its corresponding type declarations.
14 import { Compiler as Compiler$1, RspackPluginInstance } from '@rspack/core';
~~~~~~~~~~~~~~
node_modules/.pnpm/unplugin@1.5.0/node_modules/unplugin/dist/index.d.ts:15:66 - error TS2307: Cannot find module '@rspack/core' or its corresponding type declarations.
15 export { Compiler as RspackCompiler, RspackPluginInstance } from '@rspack/core';
~~~~~~~~~~~~~~
node_modules/.pnpm/webpack-virtual-modules@0.5.0/node_modules/webpack-virtual-modules/lib/index.d.ts:1:31 - error TS2307: Cannot find module 'webpack' or its corresponding type declarations.
1 import type { Compiler } from 'webpack';
~~~~~~~~~
Found 7 errors in 2 files.
Errors Files
6 node_modules/.pnpm/unplugin@1.5.0/node_modules/unplugin/dist/index.d.ts:1
1 node_modules/.pnpm/webpack-virtual-modules@0.5.0/node_modules/webpack-virtual-modules/lib/index.d.ts:1
ELIFECYCLE Command failed with exit code 2.
Describe the bug
On a fresh vuetify 3 project, building fails after adding
unplugin-vue-compoents
.Reproduction:
create vuetify project
add
unplugin-vue-components
Reproduction
See description
System Info
Used Package Manager
pnpm
Validations