-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
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
When Standalone build encounters a missing template/renderFn, misleading warning "you use runtime-only build..." is logged #4171
Comments
@MikeRalphson, Thanks for filing this issue. This warning should not appear when using the compiler-inlcuded build, so we will need a reproduction repo for that, please. |
@LinusBorg Thank you for the prompt response. Issue updated with the repro fiddle. See console output when run. |
@MikeRalphson There're no logs there |
@LinusBorg @posva my apologies, I didn't realise that the fiddle did not auto-save. I've updated it now. |
@MikeRalphson sorry, but you haven't updated the link. https://jsfiddle.net/df4Lnuw6/ still points to the basic "starter" code. |
@LinusBorg sincere apologies, jsfiddle didn't give me an updated link until I created an account... Please try https://jsfiddle.net/df4Lnuw6/40/ |
Thanks! That seems indeed to be a bug. Edit: Will label it as an improvement as it's not a bug in the sense that Vue's functionality is broken by this. A better/correct warning would improve developer experience though. Also edited the issues title to reflect the intended improvement. |
Vue.js version
2.0.5
Reproduction Link
https://jsfiddle.net/df4Lnuw6/40/
Steps to reproduce
A newbie accidentally creates an empty template, or the template fails to compile, while using the compiler-included build.
What is Expected?
The Vue warning
Failed to mount component: template or render function not defined.
or similar.What is actually happening?
The Vue warning
You are using the runtime-only build of Vue where the template option is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
This warning message is misleading in the compiler-included build. If it was defined differently in the two builds, this would solve the issue.
The text was updated successfully, but these errors were encountered: