Closed leopuleo closed 1 year ago
@leopuleo Thanks for the report!
I understood the problem, but for some reason in my environment I am able to build without any problems.
I would like to reproduce the build error, but it would be helpful if you could tell me your build configuration.
Hello @minop1205, thanks for such a quick reply.
To reproduce the error:
react-dnd-treeview
as a dependency and re-create the demo you listed on this repo.tsconfig.json
set skipLibCheck: false
(or just delete the line)tsc
command.You should see the errors. Let me know if you need any other help.
@leopuleo Thanks for the details!
I did some research and found the following link with some helpful information.
https://github.com/ezolenko/rollup-plugin-typescript2/issues/201
The fix is reflected in the package we just released as an alpha version, so please try it.
npm i @minoru/react-dnd-treeview@alpha
I will make an official release of v3.2 with this fix after I address several other Issues.
Thank you very much.
Thanks @minop1205, just installed the alpha
version and the project compiles!
Thank you for such a quick response.
Describe the bug It looks like Rollup is not handling the
~
substitution withsrc
folder path. This is ok when you inspect thedist
folder generated inside the repo...but it fails to build inside a project which usesreact-dnd-treeview
as dependency.I hope you can fix this...the library does a great job! :)
To Reproduce Steps to reproduce the behavior:
react-dnd-treeview
as dependency in a TS projectnode_modules
~/types
- i.e./dist/hooks/useContainerClassName.d.ts(
Expected behavior Transpiled files should contain
../src/
instead of~
Screenshots![Screenshot 2022-09-30 at 16 44 44](https://user-images.githubusercontent.com/2866531/193298528-6dd96434-f9b5-423d-862c-43be4ae73fe5.png)