Comments (11)
Also if I console Ng2DragDropModule just before @NgModule
annotation I can see:
function Ng2DragDropModule() {}
from ng-drag-drop.
@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.
@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.
@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.
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.
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.
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.
@sarora2073 can you tell if you are getting that error in AOT mode only?
from ng-drag-drop.
No, i'm not doing this in AOT mode.
from ng-drag-drop.
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.
@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)
- rxjs_1.of is not a function HOT 10
- Native file drag-drop support
- Drop doesn't move item HOT 2
- Drag data with angular inputs
- Angualr 6 Observable issue HOT 5
- Change frag image before drag
- Creating image when start deragging HOT 2
- Excluding background image from parent div when draggable item is triggered
- cannot drag files? HOT 1
- Need to lock axis during drag
- Not working drag drop in special case for touch devices
- ng-drag-drop package is not compatible with Ivy builds HOT 3
- How to drop the div at certain position?
- How to drop the div at certain position?
- Not compatible to safari browsers
- dragClass has no effect
- Any plans on supporting svg?
- ng-drag-drop. Drop not working
- Please add documentation for changing cursor while dragging when Ctrl-key is pressed/released HOT 1
- In card slider while dragging key board event is not working - like keyleft, keyright
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-drag-drop.