No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. MartinB
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Groups 0

    MartinB

    @MartinB

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    MartinB Follow

    Latest posts made by MartinB

    • PWA + Typescript

      Hello,

      I’m fairly new to frontend and JS framworks in general, excuse me if this should be obvious.

      I’ve been working with Quasar only in the context of SPAs until now and that works just fine, loving it. I always use TypeScript wherever possible and with SPAs this gives me no headaches.

      Now I wanted to create my first PWA and in development mode that also works great.
      But whenever I want to build, I get following errors:

      /home/user/pwa/node_modules/workbox-core/types.d.ts
      ERROR in /home/user/pwa/node_modules/workbox-core/types.d.ts(8,13):
      TS2304: Cannot find name 'ExtendableEvent'.
      /home/user/pwa/node_modules/workbox-core/types.d.ts
      ERROR in /home/user/pwa/node_modules/workbox-core/types.d.ts(30,13):
      TS2304: Cannot find name 'ExtendableEvent'.
      /home/user/pwa/node_modules/workbox-core/types.d.ts
      ERROR in /home/user/pwa/node_modules/workbox-core/types.d.ts(81,13):
      TS2304: Cannot find name 'ExtendableEvent'.
      /home/user/pwa/node_modules/workbox-core/types.d.ts
      ERROR in /home/user/pwa/node_modules/workbox-core/types.d.ts(91,13):
      TS2304: Cannot find name 'ExtendableEvent'.
      /home/user/pwa/node_modules/workbox-core/types.d.ts
      ERROR in /home/user/pwa/node_modules/workbox-core/types.d.ts(100,13):
      TS2304: Cannot find name 'ExtendableEvent'.
      /home/user/pwa/node_modules/workbox-precaching/PrecacheController.d.ts
      ERROR in /home/user/pwa/node_modules/workbox-precaching/PrecacheController.d.ts(42,17):
      TS2304: Cannot find name 'ExtendableEvent'.
      /home/user/pwa/node_modules/workbox-precaching/PrecacheController.d.ts
      ERROR in /home/user/pwa/node_modules/workbox-precaching/PrecacheController.d.ts(81,17):
      TS2304: Cannot find name 'ExtendableEvent'.
      /home/user/pwa/node_modules/workbox-routing/Router.d.ts
      ERROR in /home/user/pwa/node_modules/workbox-routing/Router.d.ts(79,17):
      TS2304: Cannot find name 'ExtendableEvent'.
      /home/user/pwa/node_modules/workbox-routing/Router.d.ts
      ERROR in /home/user/pwa/node_modules/workbox-routing/Router.d.ts(97,17):
      TS2304: Cannot find name 'ExtendableEvent'.
      /home/user/pwa/node_modules/workbox-strategies/CacheFirst.d.ts
      ERROR in /home/user/pwa/node_modules/workbox-strategies/CacheFirst.d.ts(60,47):
      TS2304: Cannot find name 'ExtendableEvent'.
      /home/user/pwa/node_modules/workbox-strategies/NetworkFirst.d.ts
      ERROR in /home/user/pwa/node_modules/workbox-strategies/NetworkFirst.d.ts(85,17):
      TS2304: Cannot find name 'ExtendableEvent'.
      /home/user/pwa/node_modules/workbox-strategies/StaleWhileRevalidate.d.ts
      ERROR in /home/user/pwa/node_modules/workbox-strategies/StaleWhileRevalidate.d.ts(68,17):
      TS2304: Cannot find name 'ExtendableEvent'.
      
       App · ⚠️  [FAIL] Build failed with 12 errors. Check log above.
      

      I tried to configure my project as suggested in this stackoverflow answer but did not succeed to get it to a working state. Also, this is not using the src-pwa directory at all which might also have thrown me off while trying to replicate it properly.

      Anybody willing to share their working tsconfig setup in a PWA + Typescript scenario?

      Thank you.

      posted in Help
      M
      MartinB