nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3.08k stars 624 forks source link

Simple content page completely freezes up Firefox/Chrome #2601

Closed kbrgmn closed 3 months ago

kbrgmn commented 5 months ago

Environment

Reproduction

GitHub repo here: https://github.com/kbrgmn/nuxt-content-icon-reproduction (as the browser freezes/crashes, stackblitz does not work well here)

Very minimal reproduction:

the first of which is:

<template>
    <Icon name="heroicons:information-circle"/>
</template>

the second component is:

<template>
    <div>
        <p>Different component here</p>
        <div>
            <slot/>
        </div>
    </div>
</template>

First component (icon): ::ComponentWithIcon ::

::SecondComponent We have some more content here

Describe the bug

When the page is visited (in dev mode with bun dev), it completely freezes up (both Firefox and Chrome), with no text being selectable, developer console not opening if it hasn't already been opened or opening blank, browser not even closing properly, and this warning is printed hundreds of times repeatedly in the console:

Avoid app logic that relies on enumerating keys on a component instance.
The keys will be empty in production mode to avoid performance overhead.

(the reproduction does not have a single Githubissues.

  • Githubissues is a development platform for aggregating issues.