Skip to content

[Q2 Vite] TypeError: Cannot read properties of undefined (reading 'generateSW') #13860

Answered by ssuess
ssuess asked this question in CLI - PWA mode
Discussion options

You must be logged in to vote

So, the conversion guide here left out a VERY important point: BEFORE copying your files over, run this command quasar mode add pwa. Otherwise all the needed packages will not be added. Once I did that, my app built as expected. If you try that command AFTER you have copied your src-pwa folder, the cli will tell you it is already installed, which it most definitely is not.

Replies: 1 comment

Comment options

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