Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
givingwu opened this issue Dec 2, 2019 · 1 comment
Closed

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

givingwu opened this issue Dec 2, 2019 · 1 comment

Comments

@givingwu
Copy link

givingwu commented Dec 2, 2019

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.

@vue-bot
Copy link

vue-bot commented Dec 2, 2019

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!

@vue-bot vue-bot closed this as completed Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants