minop1205 / react-dnd-treeview

A draggable / droppable React-based treeview component. You can use render props to create each node freely.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't import the named export 'Children' from non EcmaScript module (only default export is available)

aslanalyiev opened this issue · comments

commented

Describe the bug
Just added your lib in a project(with TS) and got this error:

To Reproduce
Steps to reproduce the behavior:

  1. Install the lib in project with TS;
  2. Start a local dev server;
  3. See error.

Expected behavior
Running/compile a proj without the error.

Screenshots
image

@aslanalyiev I could not reproduce the problem in my environment, but it seems to be caused by a dependent package.
The following Issue describes some solutions, would this be helpful?

framer/motion#1525

I'm also having this issue and none of the solutions for framer work for me :-(

@smith1511 Perhaps it is due to the build configuration.
What are you using to build your application?
What type and version of build tool do you use?

commented

Thank you for reply, yeah, I also found that it was this lib :( waiting for fixes :)