Jacek
Jacek
NNuxt
Created by FoxForGate on 9/13/2024 in #❓・help
Error in the NuxtPDF module
That's a shame... I wished to use something that does not require full-blown Puppeteer
15 replies
NNuxt
Created by FoxForGate on 9/13/2024 in #❓・help
Error in the NuxtPDF module
15 replies
NNuxt
Created by FoxForGate on 9/13/2024 in #❓・help
Error in the NuxtPDF module
once you click "connect project" (some Stackblitz thing to pass through)
15 replies
NNuxt
Created by FoxForGate on 9/13/2024 in #❓・help
Error in the NuxtPDF module
Well.. actually, the last link "HTML To PDF (Legacy)" works
15 replies
NNuxt
Created by FoxForGate on 9/13/2024 in #❓・help
Error in the NuxtPDF module
stackblitz.com/edit/nuxt-pdf-playground-running - download and run locally. It starts on Stackblitz but links don't really work there.
15 replies
NNuxt
Created by FoxForGate on 9/13/2024 in #❓・help
Error in the NuxtPDF module
I was able to run it, but only some of the links returned PDFs
15 replies
NNuxt
Created by FoxForGate on 9/13/2024 in #❓・help
Error in the NuxtPDF module
I mean these links from the playground - Minimal, Landscape, etc.
15 replies
NNuxt
Created by FoxForGate on 9/13/2024 in #❓・help
Error in the NuxtPDF module
Were you able to run any of their examples?
15 replies
NNuxt
Created by george.x.r on 9/6/2024 in #❓・help
Static website with prerendered content
Before I had set it up this way, I was dumping CMS data into JSON files and referencing them with import. Is there any reason why you avoid useAsyncData?
11 replies
NNuxt
Created by george.x.r on 9/6/2024 in #❓・help
Static website with prerendered content
It should theoretically be already handled by useAsyncData, but for some reason I observe network calls to CMS from statically generated website if I don't use Pinia (and I use it to share page footer data, so I am not going to throw it away even if I would find out that I was using useAsyncData wrong).
11 replies
NNuxt
Created by george.x.r on 9/6/2024 in #❓・help
Static website with prerendered content
Pinia works with Nuxt SSR to pass store content as JSON attached in generated HTML - this way when your code loads on the client, it won't need to fetch from CMS.
11 replies
NNuxt
Created by george.x.r on 9/6/2024 in #❓・help
Static website with prerendered content
$fetch is just ofetch which is just slightly improved native fetch, meaning "no cache". You write this code and Nuxt is going to include it in the build assets like it is any other piece of code (generating random number, or calling a weather API, stock status API, whatever...)
11 replies
NNuxt
Created by george.x.r on 9/6/2024 in #❓・help
Static website with prerendered content
But if you reference images or videos from CMS, and you wish to serve them from your domain, it will require something extra.
11 replies
NNuxt
Created by george.x.r on 9/6/2024 in #❓・help
Static website with prerendered content
I have a wrapper around useAsyncData using Pinia store to cache entries. Without it, I observe network requests to CMS even though website is built with nuxt generate.
const { data, error } = await useAsyncData(
cacheKey,
() => {
if (cacheKey in myPiniaStore.entries) {
return myPiniaStore.entries[cacheKey];
} else {
/* fetch from CMS */
}
}
);
const { data, error } = await useAsyncData(
cacheKey,
() => {
if (cacheKey in myPiniaStore.entries) {
return myPiniaStore.entries[cacheKey];
} else {
/* fetch from CMS */
}
}
);
11 replies
NNuxt
Created by benwis on 9/4/2024 in #❓・help
How to Edit v-icon created by prepend-icon in v-list-item
Hop in to the dedicated server for Vuetify
4 replies
NNuxt
Created by luhu on 9/4/2024 in #❓・help
'$auth' is of type 'unknown'.ts (18046)
You can remove the declaration manually within node_modules and restart Vue and TS server to verify if we look at the suspect.
12 replies
NNuxt
Created by luhu on 9/4/2024 in #❓・help
'$auth' is of type 'unknown'.ts (18046)
I am hesitant to upgrade my codebase to 3.5.0 and find out if it breaks everything 😅
12 replies
NNuxt
Created by luhu on 9/4/2024 in #❓・help
'$auth' is of type 'unknown'.ts (18046)
Maybe yarn add @vue/runtime-core@3.4.38 could force the downgrade?
12 replies
NNuxt
Created by luhu on 9/4/2024 in #❓・help
'$auth' is of type 'unknown'.ts (18046)
I have 3.4.38. What is your version?
12 replies
NNuxt
Created by luhu on 9/4/2024 in #❓・help
'$auth' is of type 'unknown'.ts (18046)
Hm... I compared with my own and I have only 2 hits (the commented ones)
12 replies