poi icon indicating copy to clipboard operation
poi copied to clipboard

plugin-pwa bug

Open tabaktoni opened this issue 4 years ago • 1 comments

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 avatar Oct 06 '20 14:10 tabaktoni

i use Poi pages

tabaktoni avatar Oct 06 '20 16:10 tabaktoni