Skip to content

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

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.

What does the proposed API look like?

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

Activity

vue-bot

vue-bot commented on Dec 2, 2019

@vue-bot

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @givingwu@vue-bot

        Issue actions

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