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

[v3] Vue Vite plugin is causing type errors #2560

Open
zugende opened this issue Nov 7, 2024 · 1 comment
Open

[v3] Vue Vite plugin is causing type errors #2560

zugende opened this issue Nov 7, 2024 · 1 comment
Labels
bug Something isn't working v3 #1289 vue

Comments

@zugende
Copy link

zugende commented Nov 7, 2024

Environment

  • Operating System: Darwin
  • Node Version: v20.12.0
  • Nuxt Version: - (using vue@latest)
  • CLI Version: 3.15.0
  • Nitro Version: -
  • Package Manager: pnpm@9.0.4
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Version

v3.0.0-alpha.8

Reproduction

https://github.com/zugende/nuxt-ui-type-error-repro

Description

When creating a fresh standalone Vue app using pnpm create vue@latest and then installing nuxt/ui by following the instructions here: https://ui3.nuxt.dev/getting-started/installation/vue one get type errors during the build process running pnpm build.

👀 Update 15. Nov: Workaround is to disable type-check in your build command

"build": "run-p type-check \"build-only {@}\" --",
✅ "build-only": "vite build",

Additional context

No response

Logs

// more than 160 errors (shortened)

node_modules/.pnpm/@nuxt+ui@3.0.0-alpha.8_@babel+parser@7.26.2_embla-carousel@8.3.1_rollup@4.24.4_typescript@5.6_yljlai3w6pxxgcxew5prmihdom/node_modules/@nuxt/ui/dist/runtime/components/Tabs.vue:5:24 - error TS2307: Cannot find module '#build/app.config' or its corresponding type declarations.

5 import _appConfig from '#build/app.config'
~~~~~~~~~~~~~~~~~~~

node_modules/.pnpm/@nuxt+ui@3.0.0-alpha.8_@babel+parser@7.26.2_embla-carousel@8.3.1_rollup@4.24.4_typescript@5.6_yljlai3w6pxxgcxew5prmihdom/node_modules/@nuxt/ui/dist/runtime/components/Textarea.vue:4:24 - error TS2307: Cannot find module '#build/app.config' or its corresponding type declarations.

4 import _appConfig from '#build/app.config'
~~~~~~~~~~~~~~~~~~~

[.....]

Found 165 errors.

@zugende zugende added bug Something isn't working triage v3 #1289 labels Nov 7, 2024
@benjamincanac benjamincanac removed the triage label Nov 8, 2024 — with Volta.net
Copy link
Member

We're still trying to figure that out! You can disable vue-tsc in the meantime as it's not blocking the actual build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v3 #1289 vue
Projects
None yet
Development

No branches or pull requests

2 participants