vue-library-template icon indicating copy to clipboard operation
vue-library-template copied to clipboard

Ag-Grid within component not Working

Open MariusRossouw opened this issue 6 years ago • 0 comments

I am trying to make use of Ag-Grid and Ag-Grid-Vue within a component without luck.

Any advise would be appreciated.

[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.

[Vue warn]: Error in mounted hook: "TypeError: Cannot read property 'match' of undefined"

I did npm install --save-dev ng-grid ng-grid-vue

Added import '../node_modules/ag-grid/dist/styles/ag-grid.css'; import '../node_modules/ag-grid/dist/styles/ag-theme-balham.css'; import '../node_modules/ag-grid/dist/styles/ag-theme-material.css' to both docs.js and lib.js

AND

import {AgGridVue} from "ag-grid-vue"; import axios from 'axios'; export default { name: 'hello', components: { AgGridVue, "axios": axios }, In the component hello.vue

MariusRossouw avatar Jun 05 '18 13:06 MariusRossouw