erztemplerobba
Cannot compile template (components) after migration from Nuxt UI Pro v1 to v3.
@kapa.ai
Error: Cannot find module '#build/ui-pro/footer-columns' imported from 'path/node_modules/@nuxt/ui-pro/dist/runtime/components/FooterColumns.vue'.
I get these errors for each component that throws an error but the files exist.20 replies
Nuxt content v2 -> v3
@kapa.ai It only works if I use type: 'page'. I can settle for this. The only problem I have is that I need to access the 'body' property of the content file I'm loading. So instead of {{ general.company }}, now the correct object structure would be {{ general.body.company }}. I'd have to restructure a lot in my app. Is there an easy way to fix this?
42 replies
Nuxt content v2 -> v3
@kapa.ai I get this error:
[CAUSE]
SqliteError {
message: 'no such column: "path" - should this be a string literal in
single-quotes?',
stack: 'no such column: "path" - should this be a string literal in single-quotes?\n' +
42 replies
Nuxt content v2 -> v3
@kapa.ai
console.log("All files:", allFiles.value);
gives me all files. the notifications element is this:
but still, I cannot query this collection using .path('/notifications/notifications')
or .where("stem", "=", "notifications")
. why is that42 replies
Nuxt content v2 -> v3
@kapa.ai If I use type: 'data', do I HAVE to use a schema? Typescript seems to require one.
Also, whenever I change type to 'data', The content files like general.yml cannot be read anymore.
The console log here returns 'undefined':
42 replies
Nuxt content v2 -> v3
@kapa.ai Right now, I am using type: 'page' but in my app, I am using the .yml as collections of localizations and not really 1:1 represenations of pages.
My
general.yml
looks like this:
After importing the data like this:
I want to use it like this in my template:
{{ general.company.main }}
Would type: 'data' be recommended here?42 replies
Pinia in Nuxt 3 composable error
Yeah I did. When I set up the StackBlitz, I realized that the problem is probably that I'm importing
saveUserResults
(which imports the store) in a Nuxt server route. Is there a way to use pinia in server routes?14 replies