-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module not found: Can't resolve 'react-datepicker/dist/react-datepicker.css' in v2.9.0 #1882
Comments
same here |
|
@mxschmitt Any idea what went wrong here. This might be caused by the refactoring of the release process. |
I guess it it's because of my refactoring. I will investigate now |
I'm observing the same issue on @2.0.0 also. I managed to get rid of the problem locally with
|
same problem on @2.1.0. Hopefully you guys can resolve this) |
same problem here, any fix or workaround that you could recommend? Major issue in our deployment now. I’ll try to use @2.9.0 or the previous version for now |
same problem, I am facing the same issue in our deployment |
Same problem |
same problem |
I created here a Pr, should fix the build process: #1883 But I'm sorry, I don't have much rollup knowledge :/ |
Thank you for the patch v2.9.1 @mxschmitt , but it doesn't seem to work for me neither Same error. |
Can you try this again with v2.9.3? |
Thx @martijnrusschen ! All working now 💯 |
Fixed by 98fa951. Thanks all! |
This package use to work in meteor.js. I install it using: meteor npm install --save react-datepicker `/home/2in/Meteor1.6/meteor10-Hydrate/Atrade/node_modules/react-datepicker/dist/react-datepicker.css:1 SyntaxError: Unexpected token . Any ideas? Is this a bug? |
getting this error on v2.10.1 |
getting the same error on v2.14.1. |
@sommesh i never came across a stable solution so I moved to a different package unfortunately |
Okay, kindly let me know does that different package has accessibility support? Anyway, I did a workaround to fix this. |
@sommesh I used the same solution. css file didn't load after building. Had to move the file to my local src folder and import it from there. |
It's weird since its there somehow: https://unpkg.com/[email protected]/dist/react-datepicker.css |
@mxschmitt I'm using version 2.10.0. Could it be related? I didn't want to upgrade yet because 1. I wasn't sure if any breaking changes would affect me 2. I wasn't confident upgrading will fix the bug. |
I have resolved this problem
Usage
Good luck :) |
I still encounter this problem in production build, may I know how's the update? |
same problem |
same problem here |
You need to install both "@types/react-datepicker" & "react-datepicker" |
Thanks! This was my issue. I had only installed "@types/react-datepicker". Worked great after installing "react-datepicker" too. |
thankss so much, this worked for me |
just run |
Describe the bug
Looks like the package folder is missing
dist
folder after 2.9.0 release causing webpack build to fail due to the missing 'react-datepicker/dist/react-datepicker.css' fileTo Reproduce
Steps to reproduce the behavior:
Install 2.9.0 version and import 'react-datepicker/dist/react-datepicker.css' file in one of your components
Desktop (please complete the following information):
Additional context
Node: 12.9.0
NPM: 6.10.2
The text was updated successfully, but these errors were encountered: