react-gantt-elastic icon indicating copy to clipboard operation
react-gantt-elastic copied to clipboard

NPM package is not compiled to js

Open tomsjansons opened this issue 5 years ago • 3 comments

After installing this package, I'm unable to use it in my project as the published package is in Typescript, but a create-react-app project will not compile Typescript files in the node_module folder.

https://github.com/facebook/create-react-app/issues/5623

./node_modules/react-gantt-elastic/src/GanttElastic.tsx 53:0
Module parse failed: The keyword 'interface' is reserved (53:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| const ctx = document.createElement("canvas").getContext("2d");
| 
> interface ComponentProps {
|   header?: React.ReactNode;
|   footer?: React.ReactNode;

Would you be able to publish a compiled package?

tomsjansons avatar Apr 30 '20 20:04 tomsjansons

same here, any idea about how to fix it?

dgastudio avatar Mar 27 '21 17:03 dgastudio

+1

VictorAITERA avatar Jul 19 '21 19:07 VictorAITERA

+2

daniiprado avatar May 11 '23 03:05 daniiprado