Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

plugin-pwa bug #759

Open
tabaktoni opened this issue Oct 6, 2020 · 1 comment · May be fixed by #760
Open

plugin-pwa bug #759

tabaktoni opened this issue Oct 6, 2020 · 1 comment · May be fixed by #760

Comments

@tabaktoni
Copy link

const HtmlWebpackPlugin = config.plugins.has('html-page-0') ? config.plugin('html-page-0').get('plugin') : config.plugin('html').get('plugin');

Plugin pwa here return undefined and so build fail with:
TypeError: Cannot read property '__expression' of undefined
at Object.toConfig (/Users/toni/Work/scst-booking/node_modules/webpack-chain/src/Plugin.js:56:38)
at /Users/toni/Work/scst-booking/node_modules/webpack-chain/src/Config.js:131:61
at Array.map ()
at WebpackChain.toConfig (/Users/toni/Work/scst-booking/node_modules/webpack-chain/src/Config.js:131:40)
at WebpackChain.toConfig (/Users/toni/Work/scst-booking/node_modules/poi/lib/utils/WebpackChain.js:12:24)
at CAC. (/Users/toni/Work/scst-booking/node_modules/poi/lib/index.js:147:59)
at CAC.runMatchedCommand (/Users/toni/Work/scst-booking/node_modules/cac/dist/index.js:597:34)
at PoiCore.run (/Users/toni/Work/scst-booking/node_modules/poi/lib/index.js:336:20)
at async main (/Users/toni/Work/scst-booking/node_modules/poi/bin/cli.js:14:5)

@tabaktoni
Copy link
Author

i use Poi pages

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant