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

update docs for standalone #3011

yurii-github opened this issue Oct 28, 2019 · 0 comments


Copy link

@yurii-github yurii-github commented Oct 28, 2019



Reproduction link

Steps to reproduce

  1. read docs
  2. try with vue-loader with single-file component approach (by moving each page component to its file)
  3. see error "Failed to mount component: template or render function not defined."
  4. make ES6 fixes by adding ".default"
## index.js

import Vue from 'vue'
import VueRouter from 'vue-router'
import App from './App.vue'


const router = new VueRouter({
  routes: [
    {path: '/', component: require('./pages/Index.vue').default},
    {path: '/about', component: require('./pages/About.vue').default}
}) =  new Vue({
  render: h => h(App)

What is expected?

docs must have solution for standalone approach when vue compiler IS NOT bundled to webbrowser

What is actually happening?

you don't have such docs, instead you have ton of closed unresolved issues from clients, example:





and so on. internet is flooded with this stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.