react-gantt-elastic
react-gantt-elastic copied to clipboard
NPM package is not compiled to js
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?
same here, any idea about how to fix it?
+1
+2