Skip to content

AOT problem #84

@wuzhouyang

Description

@wuzhouyang

i use DndModule.forRoot() in my app.module.ts . when i want to build the app with AOT, is throw an error :
image
so what can i do?

Activity

wuzhouyang

wuzhouyang commented on Nov 23, 2016

@wuzhouyang
Author

i think you need to add .metadata.json to support the AOT. look angular/angular#11262 (comment)
@akserg

hansl

hansl commented on Dec 5, 2016

@hansl

👍. You need to run ngc and publish the metadata.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

rmcsharry commented on Dec 21, 2016

@rmcsharry
Contributor

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

akserg commented on Dec 23, 2016

@akserg
Owner

Hi All,
Please, excuse me for the delay. The AOT support implemented in version 2.2.1 and tested in the following projects:

rmcsharry

rmcsharry commented on Dec 26, 2016

@rmcsharry
Contributor

@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

akserg commented on Dec 26, 2016

@akserg
Owner

Hi @rmcsharry
Thank you for you help.

rmcsharry

rmcsharry commented on Dec 26, 2016

@rmcsharry
Contributor

BTW, this is duplicate issue, why not close this one and continue to keep 69 open until more people confirm?

#69

akserg

akserg commented on Dec 28, 2016

@akserg
Owner

Please open the new issue if the problem still exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @hansl@rmcsharry@akserg@wuzhouyang

      Issue actions

        AOT problem · Issue #84 · akserg/ng2-dnd