-
Notifications
You must be signed in to change notification settings - Fork 587
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
@nuxt/ui causes typecheck errors #2532
Comments
For some additional context, I'm currently using nuxt/ui [v3] in a non-Nuxt project. Everything functions as expected during development, but I encounter the same type errors during the build process. I've included my package.json below in case that helps pinpoint the issue. I'm aware that this is still an alpha release, v3 looks fantastic, and I'm eager to incorporate it into my projects fully! Great work Benjamin! ⭐️ {
{
"name": "nuxt-test",
...
},
"dependencies": {
"@nuxt/ui": "https://pkg.pr.new/@nuxt/ui@5a9511f",
"@unhead/vue": "^1.11.11",
"pinia": "^2.2.4",
"prism-code-editor": "^3.4.0",
"tailwindcss": "4.0.0-alpha.31",
"vue": "^3.5.12",
"vue-color-input": "^2.0.0",
"vue-router": "^4.4.5",
"zod": "^3.23.8"
},
"devDependencies": {
"@tsconfig/node20": "^20.1.4",
"@types/node": "^20.17.0",
"@vitejs/plugin-vue": "^5.1.4",
"@vue/tsconfig": "^0.5.1",
"npm-run-all2": "^7.0.1",
"typescript": "~5.6.0",
"vite": "^5.4.10",
"vite-plugin-vue-devtools": "^7.5.3",
"vue-tsc": "^2.1.6"
}
} |
After updating to "dependencies": {
"@nuxt/ui": "https://pkg.pr.new/@nuxt/ui@12ae20d", I still getting similar errors :-/
|
I can confirm that the new release v3.0.0-alpha.8 still has the errors. I tried manually adding [more than 100 errors when running pnpm build]
│ 5 import _appConfig from '#build/app.config'
│ ~~~~~~~~~~~~~~~~~~~
│
│ ../../node_modules/.pnpm/@[email protected]_@[email protected]_chang
│ [email protected][email protected][email protected]_fexugszcr4lg775go7ekwgqtk4/no
│ de_modules/@nuxt/ui/dist/runtime/components/Toast.vue:65:30 - error TS2307
│ : Cannot find module '#imports' or its corresponding type declarations.
│
│ 65 import { useAppConfig } from '#imports'
│ ~~~~~~~~~~
│
│ ../../node_modules/.pnpm/@[email protected]_@[email protected]_chang
│ [email protected][email protected][email protected]_fexugszcr4lg775go7ekwgqtk4/no
│ de_modules/@nuxt/ui/dist/runtime/components/Toaster.vue:5:24 - error TS230
│ 7: Cannot find module '#build/app.config' or its corresponding type declar
│ ations.
│
│ 5 import _appConfig from '#build/app.config'
│ ~~~~~~~~~~~~~~~~~~~
│
│ ../../node_modules/.pnpm/@[email protected]_@[email protected]_chang
│ [email protected][email protected][email protected]_fexugszcr4lg775go7ekwgqtk4/no
│ de_modules/@nuxt/ui/dist/runtime/components/Tooltip.vue:5:24 - error TS230
│ 7: Cannot find module '#build/app.config' or its corresponding type declar
│ ations.
│
│ 5 import _appConfig from '#build/app.config' |
I don't understand, I tried it right after the release and everything works. Would you mind sharing a reproduction? |
@benjamincanac Here the reproduction: https://github.com/zugende/nuxt-ui-type-error-repro Edit: Forgot to mention. I am using |
@zugende I see it's with the Vite plugin not Nuxt, would you mind creating a new issue? |
Environment
Version
v3.0.0-alpha7
Reproduction
https://github.com/some-user123/nuxt-ui-3-typeerrors
Description
npx nuxi typecheck
Expected: no errors
Actually: 43 errors
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: