-
-
Notifications
You must be signed in to change notification settings - Fork 537
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Reproduction
npx nuxi@latest module add shadcn-nuxt
Describe the bug
Followed the nuxt shadcn/vue installation guide and keep getting the error below:
- If you rely on tsconfig.json's "paths" to resolve modules, please
install "vite-tsconfig-paths" plugin to handle module resolution.\n +
"- Make sure you don't have relative aliases in your Vitest config.
Use absolute paths instead. Read more:
https://vitest.dev/guide/common-errors",
code: 'ERR_MODULE_NOT_FOUND',
[Symbol(vitest.error.not_found.data)]: {
id: '@/assets/css/tailwind.css',
importer: 'virtual:nuxt:C%3A%2FUsers%2Fjoao%2FDocuments%2FHealth4%2FfrontendV2%2F.nuxt%2Fcss.mjs',
},
}
Installed vite-tsconfig-paths as vite plugin:
vite: {
plugins: [
tailwindcss(),
tsconfigPaths()
],
},
System Info
System:
OS: Windows 11 10.0.26100
CPU: (24) x64 AMD Ryzen 9 5900X 12-Core Processor
Memory: 38.59 GB / 63.92 GB
Binaries:
Node: 22.18.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.18 - ~\AppData\Roaming\npm\yarn.CMD
npm: 10.9.3 - C:\Program Files\nodejs\npm.CMD
npmPackages:
nuxt: ^4.0.3 => 4.0.3
reka-ui: ^2.4.1 => 2.4.1
shadcn-nuxt: ^2.2.0 => 2.2.0
vue: ^3.5.18 => 3.5.18
Contributes
- I am willing to submit a PR to fix this issue
- I am willing to submit a PR with failing tests
brwajumaa and RamaHerbin
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working