The vue project reported an error at run time and could not open the home page

the error message is as follows:

external "querystring"? 71da:1 Uncaught ReferenceError: require is not defined

at eval (external "querystring"?71da:1)
at Object.<anonymous> (app.js:2401)
at __webpack_require__ (app.js:621)
at fn (app.js:47)
at Object.eval (client.js?7955:17)
at eval (266:280)
at Object.<anonymous> (app.js:2377)
at __webpack_require__ (app.js:621)
at fn (app.js:47)
at eval (dev-client.js?7d67:3)

console information is as follows:

clipboard.png

Mar.03,2021

The

console tells you to watch issues.

1. Update the dependency package, this is the original words, if you do not know what this warning is, you can ignore it, it will disappear over time.

If you have no clue what this is all about, you can safely ignore the deprecation warning. It will disappear over time if you keep your packages up-to-date.

2. Add process.traceDeprecation = true to webpack.config.js , but you need to find out which loader has this warning

.
If you're a webpack user who is using another loader, you can set process.traceDeprecation = true in your webpack.config.js to find out which loader is causing this deprecation warning.

loader-utils Issues-sharp56

Menu