0

using ag-grid-ng2 there is error "Uncaught ReferenceError: require is not defined at /node_modules/ag-grid-ng2/dist/agGridNg2.js:2"

Poonam Thote
  • 367
  • 3
  • 5
  • 12
  • 2
    Have 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

0 Answers0