i use `DndModule.forRoot()` in my app.module.ts . when i want to build the app with AOT, is throw an error :  so what can i do?
Activity
wuzhouyang commentedon Nov 23, 2016
i think you need to add .metadata.json to support the AOT. look angular/angular#11262 (comment)
@akserg
hansl commentedon Dec 5, 2016
👍. You need to run
ngc
and publish themetadata.json
file in your NPM package.We had reports of this library not working with the Angular CLI, but unfortunately there's nothing we can do.
rmcsharry commentedon Dec 21, 2016
28 days ago this branch was created to fix AOT...is anyone able to merge it?
https://github.com/akserg/ng2-dnd/tree/aot
akserg commentedon Dec 23, 2016
Hi All,
Please, excuse me for the delay. The AOT support implemented in version 2.2.1 and tested in the following projects:
Let me know about all issues you will have.
rmcsharry commentedon Dec 26, 2016
@akserg Thanks and Merry Christmas! I have tested 2.2.1 and the simple drag and drop works for AOT build.
I will test sortable dnd tomorrow.
akserg commentedon Dec 26, 2016
Hi @rmcsharry
Thank you for you help.
rmcsharry commentedon Dec 26, 2016
BTW, this is duplicate issue, why not close this one and continue to keep 69 open until more people confirm?
#69
akserg commentedon Dec 28, 2016
Please open the new issue if the problem still exists.