I am trying out the vue 3 components and for the same i created a page with just one button. Copied from your sample
<template>
<div id="app">
<img src="./assets/logo.png">
<h1>{{ msg }}</h1>
<ejs-button :content="name"></ejs-button>
</div>
</template>
<script>
import Vue from 'vue';
import { ButtonPlugin } from '@syncfusion/ej2-vue-buttons';
Vue.use(ButtonPlugin);
export default {
name: 'app',
data () {
return {
msg: 'Hi EJ2 Components for Vue',
name: 'Button'
}
}
}
</script>
How ever while running the same i am getting the following error
App.vue?3dfd:12 Uncaught TypeError: Cannot read properties of undefined (reading 'use')
at eval (App.vue?3dfd:12)
at Module../node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader-v16/dist/index.js?!./src/App.vue?vue&type=script&lang=js (app.js:938)
at __webpack_require__ (app.js:849)
at fn (app.js:151)
at eval (App.vue?224d:1)
at Module../src/App.vue?vue&type=script&lang=js (app.js:985)
at __webpack_require__ (app.js:849)
at fn (app.js:151)
at eval (App.vue?dfb6:1)
at Module../src/App.vue (app.js:973)
Below is my package.json
"dependencies": {
"@syncfusion/ej2-vue-buttons": "^19.2.60",
"core-js": "^3.6.5",
"vue": "^3.0.0",
"vue-class-component": "^8.0.0-rc.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"@vue/compiler-sfc": "^3.0.0",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^7.0.0"
}