Invalid webpack4 mode

I set mode to development
but print out why it is undefined???
clipboard.png

.
Jul.13,2022

you haven't compiled webpack yet, so of course you can't get the value in the set env

of course, it is also possible that you have not configured webpack.DefinePlugin

.

I have the same problem

Menu