This is an old revision of the document!
Add the following line near the top of the quasar.config.ts
const packageJson = JSON.parse(readFileSync(new URL('./package.json', import.meta.url), 'utf-8'));