nomcopter / react-mosaic

A React tiling window manager

Home Page:https://nomcopter.github.io/react-mosaic/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Outdated react-dnd (v7.7.0) throws error in the latest stable TypeScript (3.7)

bitjson opened this issue · comments

Bug report

  • Package version(s): v3.2.0
  • Browser and OS versions: all

Steps to reproduce

  1. Install react-mosaic in a project using the latest version of TypeScript
  2. Try to build

Actual behavior

An error is thrown by the compiler:

/[project]/node_modules/dnd-core/lib/cjs/interfaces.d.ts
TypeScript error in /[project]/node_modules/dnd-core/lib/cjs/interfaces.d.ts(1,10):
Import declaration conflicts with local declaration of 'Unsubscribe'.  TS2440

  > 1 | import { Unsubscribe } from 'redux';
      |          ^
    2 | export declare type Identifier = string | symbol;
    3 | export declare type SourceType = Identifier;
    4 | export declare type TargetType = Identifier | Identifier[];

Expected behavior

Successful build


Anyone know of a workaround that can be used until react-mosaic is updated to a newer version of react-dnd? (See also: react-dnd issue.)

Will try to get to this. Accepting PRs in the meantime.