You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit f1bdf73 simplified vue.config.js loading by not checking if the file exists, but instead just require()-ing it and catching the failure if it doesn't. However, this also suppresses cases where vue.config.js exists, but it in turn calls require() on something that doesn't exist, since all the exception handling code looks for is e.code === 'MODULE_NOT_FOUND'
The text was updated successfully, but these errors were encountered:
Version
4.3.0
Reproduction link
https://github.com/mrozekma/vue-cli-bug-demo
Environment info
Steps to reproduce
Run
yarn serve
. It will load successfully. Then downgrade to @vue/[email protected] andyarn serve
will correctly fail.What is expected?
ERROR Error loading vue.config.js:
ERROR Error: Cannot find module 'bad-module'
What is actually happening?
Server loads successfully
Commit f1bdf73 simplified
vue.config.js
loading by not checking if the file exists, but instead justrequire()
-ing it and catching the failure if it doesn't. However, this also suppresses cases wherevue.config.js
exists, but it in turn callsrequire()
on something that doesn't exist, since all the exception handling code looks for ise.code === 'MODULE_NOT_FOUND'
The text was updated successfully, but these errors were encountered: