-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
<template> Shows errors on variables despite being defined in <script> with Volar & Typescript #215
Comments
I don't believe this is a Nuxt Bridge issue; rather, it's a tooling issue (as Consider raising an issue with Volar. |
I've faced these issue too, I'm yet to setup a reproduction repo, given that I don't find a solution to this soon... It also happens even when just using the composition api for me with the properties being returned from the setup function.
It's worth noting that I have volar setup and working perfectly (had to also install @vue/runtime-dom) with Nuxt 2 without the bridge |
Opening an issue on volar would probably be best. /cc @johnsoncodehk Please let us know if you expect any special setup to hint volar working with nuxt 2 projects. We can add it to auto-generated types or bridge starter or docs as you wish :) |
@johnsoncodehk Even without the path aliases in |
@danielroe After I reinstalled the repro case and built it, there is no problem, because |
Hi,
in ./.nuxt/tsconfig.json break Volar type checking. |
Environment
Windows_NT
v16.6.2
2.16.0-27226092.034b9901
Yarn
Webpack
head
,css
,plugins
,components
,buildModules
,modules
,build
-
@nuxt/bridge@3.0.0-27238235.a1bcc53
Describe the bug
Basically the image, I installed a clean Nuxt 2, converted it to bridge, made a tsconfig as described here #236, added the following (from what I found regarding using Vue 2 with Volar):
Tried installing @vue/runtime-dom and unplugin-vue2-script-setup, but nothing. The error is still there.
I tried defining them via options API too, seems to be broken there too.
I might have done something wrong, I mostly use JS but wanted to try TS at some point. Could also be a Volar issue, but I'm unsure. It works fine with Nuxt 3 or just Vue 3.
Reproduction
https://github.com/Luffyyy/nuxt2-bridge-issue
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: