Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inability to work with webpack@5 and html-webpack-plugin@^4.5.0 #15

Closed
D-Pow opened this issue Dec 21, 2020 · 1 comment
Closed

Inability to work with webpack@5 and html-webpack-plugin@^4.5.0 #15

D-Pow opened this issue Dec 21, 2020 · 1 comment

Comments

@D-Pow
Copy link

D-Pow commented Dec 21, 2020

Attempting to build using a simple config object as described in the specs fails due to TypeError: Cannot read property 'tap' of undefined.

Webpack config

module.exports = {
    ...
    plugins: [
        new HtmlWebpackPlugin({
            title: indexHtmlTitle,
            template: paths.root + '/src/index.html',
            meta: indexHtmlMetaTagData
        }),
        new InterpolateHtmlPlugin(myConfigObj),
        ...
    ]
};

Output

TypeError: Cannot read property 'tap' of undefined
    at \myapp\node_modules\interpolate-html-plugin\index.js:36:63
    at Hook.eval [as call] (eval at create

Expected result

InterpolateHtmlPlugin to work as expected with webpack@5, html-webpack-plugin@^4.5.0, etc.

Edit: Added the HtmlWebpackPlugin config to plugins array to show that the suggestion in issue 5 to put HtmlWebpackPlugin above InterpolateHtmlPlugin does not solve the issue.

@egoist
Copy link
Owner

egoist commented Jan 15, 2021

Should be fixed in v4.0.0 (#14)

@egoist egoist closed this as completed Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants