SSR + PWA - Build error when workboxPluginMode is injectManifest
When building SSR + PWA, if workboxPluginMode is set to injectManifest, the error "directoryIndex" is not a supported parameter. appears in the terminal, though it is not set in the configuration.
Edits
- Updated quasar to v1.0.0-beta.8
Software version
OS: MacOS Sierra 10.12.6 Node: v10.15.2 NPM: 6.8.0 Any other software related to your bug:
Quasar
Build mode........ ssr Pkg quasar........ v1.0.0-beta.8 Pkg @quasar/app... v1.0.0-beta.9 Debugging......... no
What did you get as the error?
(node:72502) UnhandledPromiseRejectionWarning: ValidationError: "directoryIndex" is not a supported parameter.
- errors.js:190 Object.exports.process
[app]/[joi]/lib/errors.js:190:19
- index.js:668 internals.Object._validateWithOptions
[app]/[joi]/lib/types/any/index.js:668:31
- index.js:702 internals.Object.validate
[app]/[joi]/lib/types/any/index.js:702:21
- validate.js:20 module.exports
[app]/[workbox-build]/build/entry-points/options/validate.js:20:33
- get-manifest.js:36 _callee$
[app]/[workbox-build]/build/entry-points/get-manifest.js:36:23
- new Promise
- _export.js:36 new F
[app]/[core-js]/library/modules/_export.js:36:28
- get-manifest.js:57 getManifest
[app]/[workbox-build]/build/entry-points/get-manifest.js:57:17
- inject-manifest.js:160 InjectManifest._callee$
[app]/[workbox-webpack-plugin]/build/inject-manifest.js:160:24
What were you expecting?
No error
What steps did you take, to get the error?
Config: The relevant portion of the configuration.
{
ssr: {
pwa: true
},
pwa: {
workboxPluginMode: 'InjectManifest',
// workboxOptions: {},
manifest: {
name: 'app',
short_name: 'app',
description: 'app',
display: 'standalone',
orientation: 'portrait',
background_color: '#ffffff',
theme_color: '#027be3',
icons: [
{
'src': 'statics/icons/icon-128x128.png',
'sizes': '128x128',
'type': 'image/png'
},
{
'src': 'statics/icons/icon-192x192.png',
'sizes': '192x192',
'type': 'image/png'
},
{
'src': 'statics/icons/icon-256x256.png',
'sizes': '256x256',
'type': 'image/png'
},
{
'src': 'statics/icons/icon-384x384.png',
'sizes': '384x384',
'type': 'image/png'
},
{
'src': 'statics/icons/icon-512x512.png',
'sizes': '512x512',
'type': 'image/png'
}
]
}
}
}
Command:
quasar build -m ssr
Additional Information
Source: https://github.com/quasarframework/quasar-cli/blob/524e5417645ec525bdd2511ee283220befd36db0/lib/webpack/pwa/index.js#L39-L41
Reference: https://developers.google.com/web/tools/workbox/modules/workbox-webpack-plugin#full_injectmanifest_config