Configure webpack plug-in prompt webpack not defined in vue-cli3

configure in vue.config.js:

> vue-cli-service serve

 INFO  Starting development server...
 ERROR  ReferenceError: webpack is not defined
ReferenceError: webpack is not defined

question:
1. Why did you report this error?
2. How can I modify it to pass successfully?

Jun.18,2021

you haven't even introduced webpack
you must have reported an error


require ('webpack/lib/IgnorePlugin')

Menu