I am using webpack, when I run npm run serve, it is give the error. Also I try to use in a component.
Browser give below error:
[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
(found in <Root>)
warn @ webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:620
webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:620 [Vue warn]: Error in mounted hook: “TypeError: _canvasjs_min__WEBPACK_IMPORTED_MODULE_13__.Chart is not a constructor”
(found in <Root>)
warn @ webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:620
webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:1887 TypeError: _canvasjs_min__WEBPACK_IMPORTED_MODULE_13__.Chart is not a constructor
at Vue.mounted (webpack-internal:///./src/main.js:86)
at invokeWithErrorHandling (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:1853)
at callHook (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:4207)
at mountComponent (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:4074)
at Vue.$mount (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:8399)
at Vue._init (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:5002)
at new Vue (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:5069)
at eval (webpack-internal:///./src/main.js:44)
at Module../src/main.js (app.js:6579)
at __webpack_require__ (app.js:724)
-
This reply was modified 5 years, 6 months ago by silemanbed.