nuxt-modules / ionic

Batteries-included, zero-config Ionic integration for Nuxt
https://ionic.nuxtjs.org
MIT License
385 stars 38 forks source link

fix: Can nuxt-ionic be used with @nuxt/content? #22

Open saschwarz opened 2 years ago

saschwarz commented 2 years ago

🐛 The bug

I'd like to use @nuxt/content to make JSON data files available for generating pages, but it's routing seems to interfere with nuxt-ionic. I tried to disable nuxt-ionic routing via the nuxt.config.js file so I could use the default nuxt routing but that seems to keep all routing from working(?).

🛠ī¸ To reproduce

https://stackblitz.com/edit/github-j5iats?file=nuxt.config.ts,pages%2Ftabs.vue

🌈 Expected behaviour

It would be great if these packages worked together.

ℹī¸ Additional context

No response

atinux commented 2 years ago

I would suggest to use the queryContent() composable with the <ContentRenderer> component to see if it works.