Skip to content

Issues with PWA updates #16476

Closed Answered by phgrund
phgrund asked this question in CLI - PWA mode
Oct 16, 2023 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

I figured out was the problem was. I had fakerjs as a dev dependency and, even though the only use of it in src was inside a boot only loaded during dev mode, it caused this issue on production build. Deleting this boot file fixed the issue.

// quasar.config.js
module.exports = configure(function (ctx) {
  const bootFiles = [
    'addressbar-color',
    'axios',
    'bugsnag',
    'chartjs',
    'components',
    'notify',
    'props',
    'push-notifications'
  ]
  if (ctx.dev) bootFiles.push('faker')
// boot/faker.js
import { boot } from 'quasar/wrappers'
import { faker } from '@faker-js/faker'

// "async" is optional;
// more info on params: https://v2.quasar.dev/quasar-cli/boot-files…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@phgrund
Comment options

Comment options

You must be logged in to vote
1 reply
@phgrund
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by phgrund
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants