Skip to content

Errors in vue.config.js are swallowed #874

Closed
@chrisvfritz

Description

@chrisvfritz

Version

3.0.0-alpha.13

Reproduction link

https://github.com/chrisvfritz/vue-enterprise-boilerplate

Steps to reproduce

Add a syntax error or throw an error from vue.config.js.

What is expected?

I would expect Vue CLI commands that require vue.config.js to fail loudly when it contains an error, making me aware of the source of the problem (or even that there is a problem).

What is actually happening?

Vue CLI will swallow it and continue as if everything is normal. I noticed this behavior when Webpack was acting as if my aliases were not defined. It took a little while to figure out that there was a syntax error in a file required from vue.config.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions