using ag-grid-ng2 there is error "Uncaught ReferenceError: require is not defined at /node_modules/ag-grid-ng2/dist/agGridNg2.js:2"
Asked
Active
Viewed 302 times
0
-
2Have you added `@types/node` in your `tsconfig.json`? https://www.typescriptlang.org/docs/handbook/tsconfig-json.html – Jai Mar 07 '17 at 05:46
-
{ "compilerOptions": { "target": "es5", "module": "commonjs", "moduleResolution": "node", "sourceMap": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "removeComments": false, "noImplicitAny": false }, "types" : ["node"] } my tsconfig.json code . still getting the above error. – Poonam Thote Mar 07 '17 at 06:30