flippingbitss / react-daterange-picker

A react date range picker to using @material-ui. Live Demo: https://flippingbitss.github.io/react-daterange-picker/
MIT License
110 stars 212 forks source link

Build fails using Parcel #7

Open Cristy94 opened 4 years ago

Cristy94 commented 4 years ago
node_modules/@matharumanpreet00/react-daterange-picker/node_modules/@material-ui/core/styles/createGenerateClassName.d.ts(1,10): 
error TS2614: Module '"../../../../../../../../../myProjectPath/node_modules/jss/src"' has no exported member 'GenerateClassName'. 
Did you mean to use 'import GenerateClassName from "../../../../../../../../../myProjectPath/node_modules/jss/src"' instead?

Probably related: https://github.com/flippingbitss/react-daterange-picker/issues/1

It seems that the import paths used are not correct.

flippingbitss commented 4 years ago

Hey @Cristy94, I am not sure what is causing that. Maybe you could try changing the versions of TypeScript?

Cristy94 commented 4 years ago

Maybe it's because I use MUI 4.9 and this package seems to use MUI 3.9? It does not work with Material UI 4?