Dani (ダニー)
Dani (ダニー)
NNuxt
Created by Dani (ダニー) on 11/16/2024 in #❓・help
How do you make component tests in Nuxt 3?
Guys how do you make visual component tests in Nuxt 3?
5 replies
NNuxt
Created by Dani (ダニー) on 2/9/2023 in #❓・help
Nuxt 3 catching missing compnent
I have a cookieConsent compenten but this name is blocked by some anti tracking plugins from browser there are some buzzwords that prevent to load some js files. I expect now that the CookieConsent compent can fail to load but nuxt 3 in prerender goes in panic mode and shows a 500 screen or a white screen with NuxtErrorBoundary is there a way to ignore this import error?
1 replies
NNuxt
Created by Dani (ダニー) on 2/7/2023 in #❓・help
How do i show image from public in header?
Currently i use this to get the image url:
<script setup lang="ts">
useSeoMeta({
ogImage: new URL("/public/image/test.png",
import.meta.url
).href,
});
</script>
<script setup lang="ts">
useSeoMeta({
ogImage: new URL("/public/image/test.png",
import.meta.url
).href,
});
</script>
But this doesnt work in nuxt generate it just returns the real path on the hard drive. (Example:
file:///C:/nuxt/.output/.../test.png
file:///C:/nuxt/.output/.../test.png
) Not the dynamic path from nuxt. What is the default way to get the image urls for meta tags?
5 replies