Giter VIP home page Giter VIP logo

Comments (8)

cormacrelf avatar cormacrelf commented on September 16, 2024 3

@angular-skyhook/multi-backend 1.3.2 released

from angular-skyhook.

jorroll avatar jorroll commented on September 16, 2024

It's possible that upgrading to react-dnd v9, as mentioned in a comment to #430, will also address this issue.

from angular-skyhook.

cormacrelf avatar cormacrelf commented on September 16, 2024

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.

jorroll avatar jorroll commented on September 16, 2024

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.

cormacrelf avatar cormacrelf commented on September 16, 2024

Did you also update dnd-multi-backend?

from angular-skyhook.

jorroll avatar jorroll commented on September 16, 2024

I did see below

from angular-skyhook.

jorroll avatar jorroll commented on September 16, 2024

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.

cormacrelf avatar cormacrelf commented on September 16, 2024

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)

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.