minop1205 / react-dnd-treeview

A draggable / droppable React-based treeview component. You can use render props to create each node freely.
MIT License
516 stars 69 forks source link

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

Closed aslanalyiev closed 1 year ago

aslanalyiev commented 1 year ago

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
minop1205 commented 1 year ago

@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?

https://github.com/framer/motion/issues/1525

smith1511 commented 1 year ago

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

minop1205 commented 1 year ago

@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?

aslanalyiev commented 1 year ago

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