question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When Standalone build encounters a missing template/renderFn, misleading warning "you use runtime-only build..." is logged

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
LinusBorgcommented, Nov 11, 2016

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.

0reactions
MikeRalphsoncommented, Nov 10, 2016

@LinusBorg sincere apologies, jsfiddle didn’t give me an updated link until I created an account…

Please try https://jsfiddle.net/df4Lnuw6/40/

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found