Skip to content
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

Official "Getting Started" does not work in "runtime-only" build #794

Closed
nivekz opened this issue Oct 17, 2016 · 2 comments
Closed

Official "Getting Started" does not work in "runtime-only" build #794

nivekz opened this issue Oct 17, 2016 · 2 comments

Comments

@nivekz
Copy link

nivekz commented Oct 17, 2016

  • vue-cli version: 2.4.0
  • vue-router version: 2.0.1
  • vue version version: 2.0.3

I created a project through vue init webpack and chose runtime for question Vue comes in two build versions, which do you want to use?. The example at http://router.vuejs.org/en/essentials/getting-started.html does not work but gives the following warning at console:

[Vue warn]: Failed to mount component: template or render function not defined. 
(found in root instance)

Choosing standalone build version seems to fix the problem.

@nivekz
Copy link
Author

nivekz commented Oct 17, 2016

@nivekz nivekz changed the title Official "Getting Started" does not work in vue-cli webpack "runtime" mode Official "Getting Started" does not work in "runtime-only" build Oct 17, 2016
@posva
Copy link
Member

posva commented Oct 17, 2016

Thanks for your interest! This is working as intended.
The runtime build cannot parse templates outside of vue files
We're making this clearer in the cli and making the standalone version the default

Edit: here's the PR: vuejs-templates/webpack#321

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