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

an object in the curly braces of jsx, it will cause an error #12035

Closed
agileago opened this issue Sep 26, 2024 · 1 comment · Fixed by #12038
Closed

an object in the curly braces of jsx, it will cause an error #12035

agileago opened this issue Sep 26, 2024 · 1 comment · Fixed by #12038
Labels
🐞 bug Something isn't working 🔩 p2-edge-case

Comments

@agileago
Copy link

Vue version

latest

Link to minimal reproduction

https://play.vuejs.org/#eNp9Uk1r3DAQ/SuqLtmFxSakhbL1urQhh/bQlDZHQXDs8a42smSkkWMw/u8ZSftFCLmI0bw3T08zM/EffZ8NHviaF662skfmAH1fCi273lhkE7t/2kOND25kM2ut6dhVlpuYy9CNV0ILXeSpmMrogtD1qkKgG2PF7rrcU22qYGCtsUVOyQietMsiP8dB8EKErzi62uhWbrO9M5rMTqFa8Np0vVRg73uURjvB1ywiAauUMi+/Yw6th9UxX++gfn4nTyZDTvC/FhzYAQQ/YVjZLWCC7/7/gZHiE9iZxitifwD+A2eUDx4T7afXDdm+4EW3v2LLpd4+uLsRQbvjp4LRwJwjX3Ca2O0HXz/bvck+xzqhZ+rieWrUwtN8G2iljnpGg8YVs9AeRx2fEvxbmCuMsYAG4fBiKTZvBRaLJduUyU0i00m/QaJO1Zpdk5sjspMNUJpeXLSVcrAMkKUNtJolmaKRQ9wV2pYnj2g0M/pWyfp5MyVG0MiGSvmg9Ol8m8sQF3mqOmhMF+zvTHul2Dq9cTBJbTxEc5GHfHSbQuriktr4OIANo6Em3mRfsq98fgUH6BiS

Steps to reproduce

https://play.vuejs.org/#eNp9Uk1r3DAQ/SuqLtmFxSakhbL1urQhh/bQlDZHQXDs8a42smSkkWMw/u8ZSftFCLmI0bw3T08zM/EffZ8NHviaF662skfmAH1fCi273lhkE7t/2kOND25kM2ut6dhVlpuYy9CNV0ILXeSpmMrogtD1qkKgG2PF7rrcU22qYGCtsUVOyQietMsiP8dB8EKErzi62uhWbrO9M5rMTqFa8Np0vVRg73uURjvB1ywiAauUMi+/Yw6th9UxX++gfn4nTyZDTvC/FhzYAQQ/YVjZLWCC7/7/gZHiE9iZxitifwD+A2eUDx4T7afXDdm+4EW3v2LLpd4+uLsRQbvjp4LRwJwjX3Ca2O0HXz/bvck+xzqhZ+rieWrUwtN8G2iljnpGg8YVs9AeRx2fEvxbmCuMsYAG4fBiKTZvBRaLJduUyU0i00m/QaJO1Zpdk5sjspMNUJpeXLSVcrAMkKUNtJolmaKRQ9wV2pYnj2g0M/pWyfp5MyVG0MiGSvmg9Ol8m8sQF3mqOmhMF+zvTHul2Dq9cTBJbTxEc5GHfHSbQuriktr4OIANo6Em3mRfsq98fgUH6BiS

What is expected?

it should be warning not error. because you can't control backend return data type.

What is actually happening?

it cause error

System Info

No response

Any additional comments?

No response

@edison1105
Copy link
Member

Same as vitejs/vite-plugin-vue#353
I think it needs to be fixed in @vue/babel-plugin-jsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working 🔩 p2-edge-case
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants