Skip to content

Cannot read property 'tapAsync' of undefined when using with HTML Webpack Plugin 4.0.0-alpha.2 #20

@ajaybc

Description

@ajaybc

Description

I used the latest create-react-app CLI to bootstrap my project and then I ejected it. The latest create-react-app uses "html-webpack-plugin" version 4.0.0-alpha.2. When I use "csp-html-webpack-plugin" with it I am getting the following error

Cannot read property 'tapAsync' of undefined

I have already tried placing "csp-html-webpack-plugin" at the end of the plugins list after "html-webpack-plugin" and still I am getting the same issue.

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

slackhq/csp-html-webpack-plugin version: 2.3.0

node version: 8.12.0

OS version(s): OSX Mojave

Steps to reproduce:

  1. Bootstrap an app with the latest create-react-app CLI
  2. Eject the application
  3. Then try using "csp-html-webpack-plugin"

Expected result:

Expected the build to complete

Actual result:

Got the error "Cannot read property 'tapAsync' of undefined"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions