-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Vue 3.4 alpha 4 compiler break Nuxt fixtures tests #9853
Labels
Comments
The root cause is that the scope variable name in the scopeIds on the node have not been removed, while it is removed from the knownIds. Due to the reuse the AST, failing to add the scope variable to the knownIds in markScopeIdentifier. core/packages/compiler-core/src/babelUtils.ts Lines 235 to 238 in 04d2c05
|
closed via #9867 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Vue version
3.4-alpha.4
Link to minimal reproduction
https://github.com/nuxt/nuxt/actions/runs/7208581804/job/19637892933?pr=23998
Steps to reproduce
pnpm nuxi dev ./test/fixtures/basic
localhost:3000/islands
Property "t" was accessed during render but is not defined on instance.
in logspnpm test
What is expected?
What is actually happening?
The compiled result of the SFC has a
JSON.stringify($setup.__vforToArray(["fall", "back"]).map((t, index) => ({ t: _ctx.t }))
(source:
JSON.stringify(__vforToArray(['fall', 'back']).map((t, index) => ({ t: t })))
)t
shouldn't be prefixed with_ctx
Investigation
debugging the SFC file transformation
@vue/compiler-sfc
through@vitejs/plugin-vue
transformMain
is always the same_ctx
prefix) and at nuxt hot reload or hmr.looking for the vue core commit
Additionnal Infos
SFC source:
vite plugin vue result:
What it should be:
System Info
No response
Any additional comments?
.map((t, index) => ())
are prefixed with_ctx
cc @danielroe
The text was updated successfully, but these errors were encountered: