Skip to content

Can vue-cli detect the syntax error when import an empty string? #4914

Closed
@givingwu

Description

@givingwu

What problem does this feature solve?

when user import an empty string like import '' in SFC, the webpack build will stuck at 98% after emitting CopyPlugin.

issue#4174
issue#4252

What does the proposed API look like?

Hope the vue-template-compiler could check the path string is an available string for require(path), and if not use the error-overlay to indicates what and where error happened.

Thanks.

Activity

haoqunjiang

haoqunjiang commented on Dec 6, 2019

@haoqunjiang
Member

the webpack build will stuck

This is due to the same bug as #4891


After that bug to be fixed, we'll need to correctly detect the error and show the right error message in https://github.com/geowarin/friendly-errors-webpack-plugin/

Contributions are welcome.

givingwu

givingwu commented on Dec 6, 2019

@givingwu
Author

Nevertheless, there's a bug in Vue CLI that we forgot to process the webpack failed hook in the serve command.

ok, i knew that, thanks.

jdz321

jdz321 commented on Jul 8, 2020

@jdz321

the webpack build will stuck

This is due to the same bug as #4891

After that bug to be fixed, we'll need to correctly detect the error and show the right error message in https://github.com/geowarin/friendly-errors-webpack-plugin/

Contributions are welcome.

#4891 已经修掉了 这个问题有进展吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haoqunjiang@jdz321@givingwu

        Issue actions

          Can vue-cli detect the syntax error when import an empty string? · Issue #4914 · vuejs/vue-cli