Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AG Grid module import error in Angular 8 using Ivy

I'm getting the following error when trying to import the ag grid module in an Angular 8 app using Ivy.

ERROR in There is no format with import statements in 'path_to_node_modules/node_modules/ag-grid-angular' entry-point.

The error goes away if i disable Ivy. Does anyone know a workaround?

Packages versions:

 "ag-grid-angular": "^21.0.0",
 "ag-grid-community": "^21.0.0",
 "ag-grid-enterprise": "^21.0.0",
like image 639
Bogdan B Avatar asked Nov 07 '22 16:11

Bogdan B


1 Answers

This is actually an issue on the Angular CLI side - see this issue comment here: https://github.com/angular/angular/issues/29564#issuecomment-486957461

In the meantime I believe you'll be able to get Ivy to work with ag-Grid (and other similar libraries) by using @angular/compiler-cli@next, instead of the latest Angular 8 release.

like image 113
Sean Landsman Avatar answered Dec 05 '22 02:12

Sean Landsman