When Standalone build encounters a missing template/renderFn, misleading warning "you use runtime-only build..." is logged
See original GitHub issueVue.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.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Gradle: compileOnly and runtimeOnly - Stack Overflow
implementation: mostly we use implementation configuration. It hides the internal dependency of the module to its consumer to avoid ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@LinusBorg sincere apologies, jsfiddle didn’t give me an updated link until I created an account…
Please try https://jsfiddle.net/df4Lnuw6/40/