Tincan
Tincan
Explore posts from servers
NNuxt
Created by Tincan on 10/23/2024 in #❓・help
(fixed) Cannot get esling.config.mjs to generate when installing eslint module
@kapa.ai ive installed stylelint nuxt module and when i run pnpm dev, im getting a no config provided for a vue file. Stylelint nuxt module should not be running on vue files by default
11 replies
NNuxt
Created by Tincan on 10/23/2024 in #❓・help
nuxt/eslint doesn't recognise global helpers in plugins folder
@kapa.ai I am using flat config and the module appears to be set up correct. Using VS Code, everything is running the latest version
10 replies
NNuxt
Created by Tincan on 10/23/2024 in #❓・help
(fixed) Cannot get esling.config.mjs to generate when installing eslint module
Fixed. I delete the eslint.config.mjs in the root of my project and when running yarn dev it generated that file again and this time it generated the one I was missing in .nuxt/
11 replies
CDCloudflare Developers
Created by Tincan on 4/10/2024 in #pages-help
service worker not being served on live (CF Pages) but is locally
appears to work now. I think removal of importscripts line was the issue. think it was double loading it and messing up
6 replies
NNuxt
Created by Tincan on 4/8/2024 in #❓・help
Service worker loaded by PWA causing constant reload
Ok theres a lot there to pick through (lots that I don't necessarily understand), but it appears to now be working. I think a combination of following this https://stackoverflow.com/questions/76190074/how-to-add-custom-service-worker-to-nuxt-3-with-vite-pwa and removing the importScripts line (possibly it was double loading and causing some sort of conflict. Thanks so much for helping me work through the problem and I'll pick through the feedback above too
50 replies
NNuxt
Created by Tincan on 4/8/2024 in #❓・help
Service worker loaded by PWA causing constant reload
this is where the config is at at the moment
50 replies
NNuxt
Created by Tincan on 4/8/2024 in #❓・help
Service worker loaded by PWA causing constant reload
pwa: {
strategies: 'injectManifest',
registerType: 'autoUpdate',
manifest: {
name: "XXXX PWA App",
short_name: "XXXXPwaApp",
description: "X PWA App description",
theme_color: "#085781",
background_color: "#085781",
icons: [
{
src: "img/prototype/maskable_icon_x192.png",
sizes: "192x192",
type: "image/png",
"purpose": "maskable any"
},
{
src: "img/prototype/apple-icon-x192.png",
sizes: "192x192",
type: "image/png",
"purpose": "maskable any"
},
{
src: "img/prototype/maskable_icon_x512.png",
sizes: "512x512",
type: "image/png",
"purpose": "maskable any"
},
],
},
workbox: {
navigateFallback: undefined,
// importScripts: ['./sw.js'],
},
client: {
installPrompt: true,
},
devOptions: {
enabled: true,
type: "module",
},
},
pwa: {
strategies: 'injectManifest',
registerType: 'autoUpdate',
manifest: {
name: "XXXX PWA App",
short_name: "XXXXPwaApp",
description: "X PWA App description",
theme_color: "#085781",
background_color: "#085781",
icons: [
{
src: "img/prototype/maskable_icon_x192.png",
sizes: "192x192",
type: "image/png",
"purpose": "maskable any"
},
{
src: "img/prototype/apple-icon-x192.png",
sizes: "192x192",
type: "image/png",
"purpose": "maskable any"
},
{
src: "img/prototype/maskable_icon_x512.png",
sizes: "512x512",
type: "image/png",
"purpose": "maskable any"
},
],
},
workbox: {
navigateFallback: undefined,
// importScripts: ['./sw.js'],
},
client: {
installPrompt: true,
},
devOptions: {
enabled: true,
type: "module",
},
},
50 replies
NNuxt
Created by Tincan on 4/8/2024 in #❓・help
Service worker loaded by PWA causing constant reload
50 replies
NNuxt
Created by Tincan on 4/8/2024 in #❓・help
Service worker loaded by PWA causing constant reload
@Joaquín inject manifest should look like this?
pwa: {
strategies: 'injectManifest',
pwa: {
strategies: 'injectManifest',
50 replies
NNuxt
Created by Tincan on 4/8/2024 in #❓・help
Service worker loaded by PWA causing constant reload
(i appreciate my issue here has changed since yesterday)
50 replies
NNuxt
Created by Tincan on 4/8/2024 in #❓・help
Service worker loaded by PWA causing constant reload
its possible the SW is loading fine but itsn't delivering push notifications for another reason
50 replies
NNuxt
Created by Tincan on 4/8/2024 in #❓・help
Service worker loaded by PWA causing constant reload
use what now?
50 replies
NNuxt
Created by Tincan on 4/8/2024 in #❓・help
Service worker loaded by PWA causing constant reload
but arent you suggesting to remove the importScript line? also the SW is handling push notifications not just offline mode
50 replies
NNuxt
Created by Tincan on 4/8/2024 in #❓・help
Service worker loaded by PWA causing constant reload
No description
50 replies
NNuxt
Created by Tincan on 4/8/2024 in #❓・help
Service worker loaded by PWA causing constant reload
above issue seems to have resolved itself, but SW doesn't seem to be working on live deployment
50 replies
NNuxt
Created by Tincan on 4/8/2024 in #❓・help
Service worker loaded by PWA causing constant reload
how will the service worker be loaded in a PWA then?
50 replies
CDCloudflare Developers
Created by Tincan on 4/10/2024 in #pages-help
service worker not being served on live (CF Pages) but is locally
Any ideas on what I can explore to figure this out guys? Pls
6 replies
CDCloudflare Developers
Created by Tincan on 4/10/2024 in #pages-help
service worker not being served on live (CF Pages) but is locally
but its still not working...
6 replies
CDCloudflare Developers
Created by Tincan on 4/10/2024 in #pages-help
service worker not being served on live (CF Pages) but is locally
No description
6 replies
CDCloudflare Developers
Created by Tincan on 4/10/2024 in #pages-help
service worker not being served on live (CF Pages) but is locally
Having said that, it appears a service worker is loaded here?
6 replies