Skip to content

react-dnd unsupported version automatically installed by webpack #448

Description

@danielhamngren

I have been following the examples in the currently online book at https://survivejs.com/react/introduction/ and was using version 2.5.6 of the boilerplate.git from https://github.com/survivejs/react-boilerplate.git

When arriving at the chapter "Implementing Drag and Drop" I ran into a problem with the code, or rather the package management.

Webpack downloaded the new dependencies for react-dnd and react-dnd-html5-backend automatically as expected. The version automatically downloaded were 7.0.2 but then the code examples in https://survivejs.com/react/implementing-kanban/drag-and-drop/ didn't work.

I got the error TypeError: React.createContext is not a function.

In order to fix the error, I manually set the version of react-dnd and react-dnd-html5-backend in package.json. The latest version that works with the current code is 2.6.0.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions