Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not supporting <nuxt-content > tag #7

Open
azataiot opened this issue Sep 4, 2021 · 1 comment
Open

not supporting <nuxt-content > tag #7

azataiot opened this issue Sep 4, 2021 · 1 comment

Comments

@azataiot
Copy link

azataiot commented Sep 4, 2021

Please add support for tag.as nuxt content is now widely used in many projects.
image

@mikeslattery
Copy link

mikeslattery commented Sep 29, 2021

I fixed this by creating a .components.js file in the spirit of nuxt-storm

// Workaround to Warnings
// See also nuxt-storm's .components.gen.js

import Vue from 'vue'

// Unknown why this library doesn't follow the rules.
import NuxtContent from '@nuxt/content'
Vue.component('nuxt-content', NuxtContent)

Another workaround is to use tag name <NuxtContent /> instead of <nuxt-content />, but that's not really proper usage.

I reported as a bug in nuxt-content: nuxt/content#969

It would also be nice if nuxt-storm added configuration for manually adding individual components in nuxt.config.js:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants