Hi.
Below is my code, at App.vue.
When I run npm run serve, it shows nothing at the browser.
Uncaught TypeError: Object(...) is not a function
at eval (button.component.js?b947:102)
at eval (button.component.js?b947:109)
at Module.../../../../node_modules/@syncfusion/ej2-vue-buttons/src/button/button.component.js (chunk-vendors.js:635)
|
<template>
<div id="app">
<img alt="Vue logo" src="./assets/logo.png" />
<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 {
name: "Button",
};
},
};
</script>
<style>
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
</style>
<style>
#app {
font-family: "Avenir", Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style> |
Thanks.