error using <center> and content querying
See original GitHub issueEnvironment / Reproduction
First, create a new project with content extension:
npx nuxi init bug -t content
cd bug
npm install && npm run dev
Create pages/x.vue
(this is just a random name):
<script setup>
const { data } = await useAsyncData('home', () => queryContent('/').findOne())
</script>
<template>
<h1>this works</h1>
<div>
<h1>this works</h1>
</div>
<center>
<h1>this does not work. Remove the center block to make it work</h1>
</center>
{{ data }}
</template>
video https://discord.com/channels/473401852243869706/897487139888062506/1008386040949637140
Describe the bug
i get this error When adding a center ‘block’:
500
Invalid value used as weak map key
Additional context
No response
Logs
[Vue warn]: Failed to resolve component: center
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
[nuxt] [request error] [unhandled] [500] Invalid value used as weak map key
at WeakMap.set (<anonymous>)
at normalizePropsOptions (./node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:3966:11)
at createComponentInstance (./node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:6957:23)
at renderComponentVNode (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:171:22)
at Module.ssrRenderComponent (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:608:12)
at _sfc_ssrRender (./.nuxt/dist/server/server.mjs:5518:31)
at renderComponentSubTree (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:253:13)
at ./node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:185:29
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async unrollBuffer (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:405:24)
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Error when you run a query in Access - Office - Microsoft Learn
You receive an error message when you run a query that has a field name that begins with a double-byte arabic number.
Read more >Resolve custom SQL data source exception error in QuickSight
I'm trying to use custom SQL data sources in Amazon QuickSight, but I get the error message "Your database generated a SQL exception....
Read more >Error while querying a table from browse data by specifying a ...
Below is the error displayed when trying to query a table through BROWSE DATA by specifying the WHERE clause: java.sql.
Read more >Receive the "Type mismatch in expression" error when ...
This error means that the fields that you use in one of your links are of different types.
Read more >Troubleshooting errors | Ads Data Hub - Google Developers
Avoid reaggregation. · Use a smaller data date range. · Break up your query into multiple, smaller queries. · Ensure that the larger...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
O i see. Then i will shut up.