We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7097c2 commit 41a0e62Copy full SHA for 41a0e62
config/index.ts
@@ -19,8 +19,13 @@ let vueConfig: VueCliOptions = {}
19
try {
20
vueConfig = require(resolve(process.env.CLI_CONFIG_FILE || 'vue.config.js')) || {}
21
} catch (e) {
22
- if (process.env.VITE_DEBUG) {
23
- console.error(chalk.redBright(e))
+ // handle no vue.config.js
+ if (e.code === 'MODULE_NOT_FOUND') {
24
+ if (process.env.VITE_DEBUG) {
25
+ console.error(chalk.redBright(e))
26
+ }
27
+ } else {
28
+ console.error(chalk.redBright(e.stack ?? e))
29
}
30
31
0 commit comments