Closed cvbc2010 closed 7 years ago
Is angular2-data-table compatible with AoT compilation? Not all external libraries are ready for using it.
https://www.npmjs.com/package/angular2-data-table
Here he says, it supports AOT Compilation. In Features section.
You are using angular-2-data-table
, and not angular2-data-table
(now ngx-datatable
). See the path of the error you are getting:
C:/Users//Documents/Dashboard/App/DashboardWeb/node_modules/angular-2-data-table/dist/index.d.ts'
@cvbc2010 I have the exact same issue when running ngc. Did you manage to figure out? @robisim74 Any tips on how we can make this angular-2-data-table work with AOT?
Thanks!
Now i want to switch to ngx-datatable. Instead of wasting time on solving the issue. Yesterday i wasted 5 hrs for trying to fix it.
@Mark-Brightcloud If you see the code of angular-2-data-table , it doesn't generate the ES2015 modules and the metadata files to work with AoT. You have to ask to its owner, or fork the project and create your own package with the changes. Greetings
@robisim74 thanks @cvbc2010 @Mark-Brightcloud You should not use any libraries which don't support AoT, not good for users of your application. You could try creating an issue on the repos you are trying to us. I will also try to find a grid which supports AoT of fork the repos. Let me know if you find a good grid.
Angular has a problem here as many Angular library repos are not production ready.
Greetings Damien
@robisim74 @damienbod Really appreciate your time and comment! Will do.
@Mark-Brightcloud Is it ok to close this, as this is a problem with the npm package not supporting AoT.
Sorry i forgot to close this thread. Thanks.
I am getting ths error while running ngc. I have stared where ever confidential. Please help me out in this.
cmd.exe /c npm run ngc --color=always
npm ERR! Please include the following file with any support request: npm ERR! C:\Users\bchirravurivenkat\Documents*Dashboard\App*DashboardWeb\npm-debug.log
Process terminated with code 1.
Thanks, Bharani Chakravarthy.