You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the given example in/similar syntax to the example in the ContentQuery API page as the template for your component
Use component in a page
It marks syntax error in the editor and shows compilation error on the site.
Describe the bug
A page was refusing to load for ages coz of a component based on the example. Turns out Vue doesn't allow this:
"If you are mixing named slots with the default scoped slot, you need to use an explicit <template> tag for the default slot. Attempting to place the v-slot directive directly on the component will result in a compilation error. This is to avoid any ambiguity about the scope of the props of the default slot."
Environment
Windows_NT
v18.14.0
3.0.0
1.0.0
[email protected]
vite
nitro
,modules
,app
@nuxtjs/[email protected]
,@nuxt/[email protected]
,[email protected]
-
Reproduction
It marks syntax error in the editor and shows compilation error on the site.
Describe the bug
A page was refusing to load for ages coz of a component based on the example. Turns out Vue doesn't allow this:
"If you are mixing named slots with the default scoped slot, you need to use an explicit
<template>
tag for the default slot. Attempting to place thev-slot
directive directly on the component will result in a compilation error. This is to avoid any ambiguity about the scope of the props of the default slot."Docs example:
Suggestion:
Additional context
I'm new to Vue & Nuxt. Still couldn't get any content from ContentQuery or queryContent, but the syntax error was solved 😅
Logs
No response
The text was updated successfully, but these errors were encountered: