question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error using <center> and content querying

See original GitHub issue

Environment / 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:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
random-webdevelopercommented, Aug 14, 2022
<center> element is deprecated https://developer.mozilla.org/en-US/docs/Web/HTML/Element/center
0reactions
kristus123commented, Aug 15, 2022

O i see. Then i will shut up.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found