angular-5-data-table icon indicating copy to clipboard operation
angular-5-data-table copied to clipboard

dependency issue while compiling

Open rayzrchen opened this issue 7 years ago • 5 comments

I got the below warning while I run the "ng serve": WARNING in Circular dependency detected: src/app/data-table/components/row.ts -> src/app/data-table/components/table.ts -> src/app/data-table/components/row.ts

WARNING in Circular dependency detected: src/app/data-table/components/table.ts -> src/app/data-table/components/row.ts -> src/app/data-table/components/table.ts

rayzrchen avatar Feb 16 '18 15:02 rayzrchen

Update your angular-cli.json ,set "showCircularDependencies": false "defaults": { "styleExt": "css", "component": {}, "build": { "preserveSymlinks": true, "showCircularDependencies": false } }

vikash5529 avatar Feb 18 '18 05:02 vikash5529

Turning off the setting showCircularDependencies can't be a viable solution. I don't understand why @Inject(forwardRef(() => DataTable)) public dataTable: DataTable in row.ts is not sufficient to prevent circular dependency warning though.

angabriel avatar Mar 05 '18 12:03 angabriel

i got the same WARNING how we can fix it

souhail-chougrani avatar Mar 27 '18 21:03 souhail-chougrani

how do i fix this circular dependency ? any solutions ?

syedirfan7 avatar May 30 '18 04:05 syedirfan7

I have changed to use ag grid

rayzrchen avatar May 30 '18 12:05 rayzrchen