-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
definePageMeta breaks definition/compilation of inline JSX-components #27581
Copy link
Copy link
Closed
Description
Environment
- Operating System: Windows_NT
- Node Version: v20.14.0
- Nuxt Version: 3.12.1
- CLI Version: 3.12.0
- Nitro Version: 2.9.6
- Package Manager: yarn@4.1.1
- Builder: -
- User Config: ssr, dev, experimental, alias, nitro, build, css, features, modules, typescript, runtimeConfig, devtools
- Runtime Modules: nuxt-typed-router@^3.6.3, (), @unocss/nuxt@^0.61.0, @nuxtjs/google-fonts@^3.2.0, @pinia/nuxt@^0.5.1, @vueuse/nuxt@10.11.0, nuxt-proxy-request@^1.10.0
- Build Modules: -
Reproduction
https://stackblitz.com/edit/nuxt-examples-sry7jl?file=pages%2Findex.vue
Describe the bug
After updating from 3.11.2 to 3.12.1 I got random Transform failed errors from \nuxt\node_modules\esbuild\lib\main.js module. I guess the reason is using definePageMeta macro and defining inline jsx-components at the same page. See reproduction link for example.
Additional context
No response
Logs
ERROR [unhandledRejection] Transform failed with 1 error: 15:32:20
<stdin>:3:32: ERROR: Expected ";" but found "Page"
<stdin>:3:32: ERROR: Expected ";" but found "Page"
at failureErrorWithLog (node_modules/nuxt/node_modules/esbuild/lib/main.js:1462:15)
at eval (node_modules/nuxt/node_modules/esbuild/lib/main.js:745:50)
at responseCallbacks.<computed> (node_modules/nuxt/node_modules/esbuild/lib/main.js:612:9)
at handleIncomingPacket (node_modules/nuxt/node_modules/esbuild/lib/main.js:667:12)
at Socket.readFromStdout (node_modules/nuxt/node_modules/esbuild/lib/main.js:590:7)
at Socket.emit (node:events:30:10899)
at addChunk (node:internal/streams/readable:225:3685)
at readableAddChunk (node:internal/streams/readable:225:3393)
at Readable.push (node:internal/streams/readable:225:4971)
at _0xf6bbc9.onStreamRead (node:internal/stream_base_commons:211:2596)Reactions are currently unavailable