Root:3000
Root:3000
SSolidJS
Created by Root:3000 on 7/29/2024 in #support
err::insecure_response: solid-start `service-worker` with 'vite-plugin-pwa'
I'm trying to use service-worker and background-sync-api for periodic data fetching with solidj-start and vite-pwa. Static and service-worker both preset builds ok, but localhost = service worker registers ☑️ https://domain.com = service worker registers 🛑 with err::insecure_response vite.config `js import { VitePWA } from 'vite-plugin-pwa' export default defineConfig({ plugins: [ VitePWA({ srcDir: ".output/public/", filename: "service-worker.js", strategies: "injectManifest", injectRegister: false, manifest: { name: 'project', short_name: 'project', description: 'project', theme_color: '#ffffff', }, injectManifest: { injectionPoint: undefined, }, devOptions: { enabled: true, type: 'module' }, build: { target: "esnext", polyfillDynamicImport: false, } }) ] })
2 replies
SSolidJS
Created by Root:3000 on 6/27/2024 in #support
How do i host static vinxi build with nginx so the routing works, is there any guide?
Official docs are pretty much WIP.
7 replies
SSolidJS
Created by Root:3000 on 6/23/2024 in #support
How to route `products/[id]/settings` in Solidstart?
trying to achieve example.com/products/1/settings
|--routes/ // example.com
|--products/
|--[id].tsx // example.com/products/1
|--[id]/
|--settings.tsx // example.com/products/1/settings
|--routes/ // example.com
|--products/
|--[id].tsx // example.com/products/1
|--[id]/
|--settings.tsx // example.com/products/1/settings
10 replies
SSolidJS
Created by Root:3000 on 12/24/2022 in #support
Object.keys returns undefined on JSX
<Show
when={Object.keys(fetchBal()["subscription"]).length === 0 }>
...
</Show>
<Show
when={Object.keys(fetchBal()["subscription"]).length === 0 }>
...
</Show>
console
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'subscription')
at get when [as when] (Herostats.jsx:219:43)
at Show.createMemo.equals [as fn] (dev.js:1408:44)
at runComputation (dev.js:696:22)
at updateComputation (dev.js:679:3)
at createMemo (dev.js:238:10)
at Show (dev.js:1408:21)
at dev.js:516:12
at untrack (dev.js:421:12)
at Object.fn (dev.js:512:37)
at runComputation (dev.js:696:22)
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'subscription')
at get when [as when] (Herostats.jsx:219:43)
at Show.createMemo.equals [as fn] (dev.js:1408:44)
at runComputation (dev.js:696:22)
at updateComputation (dev.js:679:3)
at createMemo (dev.js:238:10)
at Show (dev.js:1408:21)
at dev.js:516:12
at untrack (dev.js:421:12)
at Object.fn (dev.js:512:37)
at runComputation (dev.js:696:22)
36 replies