Comments (8)
@angular-skyhook/multi-backend
1.3.2 released
from angular-skyhook.
It's possible that upgrading to react-dnd v9, as mentioned in a comment to #430, will also address this issue.
from angular-skyhook.
Sorry for the wait. Latest (^1.3.0
) raises the minimum dnd-core version to 9. Please check if this is resolved.
from angular-skyhook.
Sorry for the wait
No worries! Upgrading to version 9 does fix this issue. However, it also created a new issue:
In my app module I've been importing SkyhookDndModule
like so (working in 1.1.1
)
SkyhookDndModule.forRoot({ backendFactory: createDefaultMultiBackend }),
In version 1.3.0
the following type error is raised:
Argument of type '{ backendFactory: BackendFactory; }' is not assignable to parameter of type 'BackendInput | BackendFactoryInput'.
Type '{ backendFactory: BackendFactory; }' is not assignable to type 'BackendFactoryInput'.
Types of property 'backendFactory' are incompatible.
Type 'BackendFactory' is not assignable to type '() => BackendFactory'.
This can be fixed by creating an exported function which returns createDefaultMultiBackend
:
export function backendFactory() {
return createDefaultMultiBackend;
});
SkyhookDndModule.forRoot({ backendFactory });
I think the real fix is updating createDefaultMultiBackend
to have the type () => BackendFactory
. See #483
from angular-skyhook.
Did you also update dnd-multi-backend?
from angular-skyhook.
I did see below
from angular-skyhook.
Wait, I read that as "Did you also update @angular-skyhook/multi-backend?" My project only has direct dependencies on @angular-skyhook/core
and @angular-skyhook/multi-backend
, wouldn't providing dnd-multi-backend
be handled by @angular-skyhook/multi-backend
?
from angular-skyhook.
Your PR is correct. I also tried to update to dnd-multi-backend v4.0.0 as it's meant to be easier to use with dnd-core v9, but apparently that breaks all dragging, so I will stick with 3.2.1 for now.
from angular-skyhook.
Related Issues (20)
- Skyhook 1.2.1 seems to cause a script error with Angular 8 and Edge browser. HOT 4
- SkyhookPreview out of position
- Running ng build with optimization set to true breaks this library HOT 7
- Simple sortable freeze on drop HOT 4
- Can skyhook support nested sortable lists HOT 7
- backend.backend is not a constructor HOT 6
- wrong offset in preview in chrome with win10 scaling on HOT 4
- Single backends do not work in 1.3.0 HOT 8
- Providing options is not working yet
- ivy runtime error HOT 26
- inject() must be called from an injection context HOT 1
- Multiple Drag and Drop HOT 3
- working with iframe?
- peer dependency for 1.4.0.rc-0 not updated in multi-backend
- Library breaks when enabling optimizations on Production, on v1.3.3
- skyhook-preview: binding style template via async pipe causes unnecessary change detection HOT 1
- "Cannot find namespace 'NodeJS'" and Module '"../../node_modules/react-dnd-html5-backend/lib"' has no exported member 'default'.
- Are you happy to add me as a contributor to fox the library? HOT 3
- ERROR Error: inject() must be called from an injection context
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 angular-skyhook.