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

plugin-pwa bug #759

@tabaktoni

Description

@tabaktoni

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions