Open yckimura opened 11 months ago
To workaround this, unset the Title
component on components:extend
hook.
import { defineNuxtConfig } from '@nuxt/bridge';
import { defineNuxtModule } from '@nuxt/kit';
export default defineNuxtConfig({
bridge: {
meta: true,
},
modules: [
defineNuxtModule((options, nuxt) => {
nuxt.hook('components:extend', (components) => {
const foundIndex = components.findIndex(
(x) => x.pascalName === 'Title'
);
if (foundIndex !== -1) {
components.splice(foundIndex, 1);
}
});
}),
],
});
Environment
Build Modules: (), @nuxt/bridge@3.0.0-rc.3-28343365.3c40b3f
Reproduction
https://stackblitz.com/edit/nuxt-starter-v8fpj4
Describe the bug
<title>
element of SVG is treated as<Title>
component from Nuxt Bridge whenmeta: true
. It only appears in production build (nuxi build
).<title>
inserted into SVG elementcomponents/SvgCircle.vue
:pages/index.vue
:nuxt.config.ts
:Output:
Additional context
No response
Logs
No response