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

Cannot read property install of undefined #14

Open
rafinskipg opened this issue Feb 12, 2019 · 2 comments
Open

Cannot read property install of undefined #14

rafinskipg opened this issue Feb 12, 2019 · 2 comments

Comments

@rafinskipg
Copy link

vue.runtime.esm.js?2b0e:4998 Uncaught TypeError: Cannot read property 'install' of undefined
    at Function.Vue.use (vue.runtime.esm.js?2b0e:4998)
    at createApp (app.js?1112:7)
    at eval (entry-client.js?a949:3)
    at Module../src/entry-client.js (main.js:2806)
    at __webpack_require__ (main.js:724)
    at fn (main.js:101)
    at Object.0 (main.js:2951)
    at __webpack_require__ (main.js:724)
    at main.js:791
    at main.js:794

VERSION:
"vue": "^2.5.22",
"vue-router": "^3.0.2",
"vue-server-renderer": "^2.6.3",
"vue-threejs": "^0.2.0-alpha.1"

Followed the documentation,

  Vue.use(VueThreejs)

  const router = createRouter()

  const app = new Vue({
    router,
    render: h => h(App)
  })

It does not work

@fritx
Copy link
Owner

fritx commented Feb 13, 2019

https://github.com/fritx/vue-threejs/blob/dev/examples/main.js#L6-L9

@rafinskipg sorry for the outdated documentation.

After upgrated to vue-cli-3, aka 0.2.0-alpha, it should be changed to

import * as VueThreejs from 'vue-threejs'
Vue.use(VueThreejs)

@anandbhaskaran
Copy link

This works as expected! We can close this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants