Skip to content

does this now require coffeescript support? #7

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

Open
robbiemu opened this issue Feb 14, 2017 · 1 comment
Open

does this now require coffeescript support? #7

robbiemu opened this issue Feb 14, 2017 · 1 comment

Comments

@robbiemu
Copy link

robbiemu commented Feb 14, 2017

I got a basic site right now from vue cli's init webpack foo, with vuex2

I'm getting in the browser 'Error when rendering root instance' and 'Uncaught ReferenceError: _h is not defined'.

my App.vue looks like:

<template>
  <div id="app">
    <img src="./assets/logo.png">
    <side-nav>
      <app-nav />
    </side-nav>
    <container>
      <router-view />
    </container>
  </div>
</template>

<script>
import SideNav from 'vue-side-nav'
import Nav from './components/Nav.vue'

export default {
  name: 'app',
  components: {
    sideNav: SideNav,
    appNav: Nav
  }
}
</script>

and that Nav.vue is just

<template>
  <li id="nav" class="component sidebar">Nav</li>
</template>

<script>
</script>

<style scoped>
</style>

producing:

[Vue warn]: Error when rendering root instance: 
warn
localhost/:2225 Uncaught ReferenceError: _h is not defined
    at Proxy.__vue__options__.render (eval at <anonymous> (app.js:1113), <anonymous>:173:49)
    at VueComponent.Vue._render (eval at <anonymous> (app.js:723), <anonymous>:2216:22)
    at VueComponent.updateComponent (eval at <anonymous> (app.js:723), <anonymous>:2609:21)
    at Watcher.get (eval at <anonymous> (app.js:723), <anonymous>:2934:27)
    at new Watcher (eval at <anonymous> (app.js:723), <anonymous>:2926:12)
    at VueComponent.Vue._mount (eval at <anonymous> (app.js:723), <anonymous>:2608:19)
    at VueComponent.Vue$3.$mount (eval at <anonymous> (app.js:723), <anonymous>:6178:15)
    at VueComponent.Vue$3.$mount (eval at <anonymous> (app.js:723), <anonymous>:8549:16)
    at creator (eval at <anonymous> (app.js:1119), <anonymous>:9:31)
    at VueComponent.created (eval at <anonymous> (app.js:1132), <anonymous>:7:50)

If I revert App.vue:

<template>
  <div id="app">
    <img src="./assets/logo.png">
    <app-nav />
    <router-view></router-view>
  </div>
</template>

<script>
import Nav from './components/Nav.vue'
export default {
  name: 'app',
  components: {
    appNav: Nav
  }
}
</script>

works perfectly well

@dongshimou
Copy link

me too...

[Vue warn]: Error in render function: 
(found in <SideNav>)
ReferenceError: _h is not defined
堆栈跟踪:
...

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