Skip to content

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

Closed
@MikeRalphson

Description

@MikeRalphson

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions