Closed
Description
to add vue-lib
component library I ran
npm install --save @knowscount/vue-lib
and then placed <InputBox />
& import InputBox from '@knowscount/vue-lib
, registering the component, yet the page went blank and the folioing error was reported in the console:
[Vue warn]: Error in render: "TypeError: Vue.component is not a function"
found in
---> <App> at src/App.vue
<Root>
warn @ vue.runtime.esm.js?2b0e:619
and also
vue.runtime.esm.js?2b0e:1888 TypeError: Vue.component is not a function
at eval (vue-lib.esm.js?ca34:5655)
at Array.forEach (<anonymous>)
at installVueLib (vue-lib.esm.js?ca34:5654)
at resolveAsyncComponent (vue.runtime.esm.js?2b0e:3686)
at createComponent (vue.runtime.esm.js?2b0e:3200)
at _createElement (vue.runtime.esm.js?2b0e:3422)
at createElement (vue.runtime.esm.js?2b0e:3353)
at vm._c (vue.runtime.esm.js?2b0e:3491)
at Proxy.render (App.vue?6ad7:13)
at VueComponent.Vue._render (vue.runtime.esm.js?2b0e:3548)
logError @ vue.runtime.esm.js?2b0e:1888