This repository was archived by the owner on Dec 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
This repository was archived by the owner on Dec 13, 2019. It is now read-only.
SSR + PWA - Build error when workboxPluginMode is injectManifest #227
Copy link
Copy link
Open
Description
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:
quasar-cli/lib/webpack/pwa/index.js
Lines 39 to 41 in 524e541
| if (!opts.directoryIndex) { | |
| opts.directoryIndex = '/' | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels