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
- Install react-mosaic in a project using the latest version of TypeScript
- 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.