ERROR in compilation.getAssets is not a function
date
Jan 10, 2023
slug
ERROR-in-compilation-getAssets-is-not-a-function
status
Published
tags
Bugfix
Webpack
summary
type
Post
Background
I had a project with
Node packages below:Problem
When I tried to build the project with
Webpack build scriptI got the error bellow:
Solution
There are two ways to fix that problem:
- Update
Webpackversion to at least4.40.0
getAssets is only available since Webpack 4.40.0.- Downgrade
min-css-extract-pluginto1.3.0
to be