codekraft-studio / vue-record

VueJs components for MediaRecorder API
https://codekraft-studio.github.io/vue-record/
MIT License
94 stars 57 forks source link

Error when importing #7

Closed mreduar closed 4 years ago

mreduar commented 4 years ago

I'm trying to import this package but there's no way I can. Look at the npm folder and I see only the dist folder. And there's only js compiled with webpack there. Is this okay?

This is what I've done so far.

import { VueRecord } from '@codekraft-studio/vue-record'
Vue.use(VueRecord)

in console Uncaught TypeError: Cannot read property 'install' of undefined Try this too.

import { VueRecord } from '@codekraft-studio/vue-record'
    ...
    //In another component
    components: {
        VueRecord,
    },

in console Unknown custom element: <vue-record>

b4dnewz commented 4 years ago

hi, checkout the installation example, the curly brackets are not required.

import VueRecord from '@codekraft-studio/vue-record'
Vue.use(VueRecord)