Not able to add a simple button
Dear Team,
I am trying out the vue 3 components and for the same i created a page with just one button. Copied from your sample
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
|
<template>
<ejs-button>Button</ejs-button>
</template>
<script>
import { ButtonComponent } from '@syncfusion/ej2-vue-buttons';
import { enableRipple } from '@syncfusion/ej2-base';
enableRipple(true);
export default {
name:'Button',
components: {
"ejs-button": ButtonComponent,
},}
</script>
<style>
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
button {
margin: 25px 5px 20px 20px;
}
</style>
|
- 1 Reply
- 2 Participants
-
SR Sreehari
- Sep 8, 2021 12:55 AM UTC
- Sep 8, 2021 12:27 PM UTC