Giter Site home page Giter Site logo

Comments (11)

gund avatar gund commented on May 14, 2024

Also if I console Ng2DragDropModule just before @NgModule annotation I can see:

function Ng2DragDropModule() {}

from ng-drag-drop.

ObaidUrRehman avatar ObaidUrRehman commented on May 14, 2024

@gund , I think this is probably related to using webpack. I haven't tested or added support for webpack yet. (I plan to). If could possibly provide me a plunkr that would really help.

from ng-drag-drop.

gund avatar gund commented on May 14, 2024

@ObaidUrRehman I'm not sure it is possible to use webpack with plunkr =)

Anyway there is really no configuration required for webpack to use your library, I just npm install it and import that should do the job.
But for some reason angular complains.

You can try to create project with angular cli, install your lib and import it to AppModule to see that error in runtime.

from ng-drag-drop.

ObaidUrRehman avatar ObaidUrRehman commented on May 14, 2024

@gund what version of ng-cli are you using? Its seems that this is a know problem with older versions of cli. See Also: videogular/videogular2#249

I encountered the same problem with angular-cli 1.0.0-beta-15.0.0 but with v 1.0.0-beta.19-3 its working fine.

from ng-drag-drop.

gund avatar gund commented on May 14, 2024

I do use angular-cli v1.0.0-beta-16 so I will try to upgrade it and try again.
Thanks for referencing an issue.

from ng-drag-drop.

gund avatar gund commented on May 14, 2024

You are right with updated angular-cli (1.0.0-beta.19-3) this is not longer an issue.

Thanks a lot!

from ng-drag-drop.

sarora2073 avatar sarora2073 commented on May 14, 2024

fyi - i'm having the same error, using the latest greatest angular-cli (1.0.0-beta.24) with angular 2.3.0. i happen to be using webpack, so not sure if that is a factor after all as suggested above. i tried rolling back to angular-cli 1.0.0-beta.19-3 since that was the apparent solution above, but that didn't resolve the matter for me. suggest we keep this issue open. if i find a solution i'll post.

from ng-drag-drop.

gund avatar gund commented on May 14, 2024

@sarora2073 can you tell if you are getting that error in AOT mode only?

from ng-drag-drop.

sarora2073 avatar sarora2073 commented on May 14, 2024

No, i'm not doing this in AOT mode.

from ng-drag-drop.

ObaidUrRehman avatar ObaidUrRehman commented on May 14, 2024

This seems to be an issue with angular-cli.
For refrence: angular/angular-cli#3426

I need to look into this in detail.

from ng-drag-drop.

ObaidUrRehman avatar ObaidUrRehman commented on May 14, 2024

@sarora2073 I just updated ng2-drag-drop to v0.5.1. Now using ngc to build instead of tsc (among other changes). Its now working on angular-cli v1.0.0-beta.24

from ng-drag-drop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.