-
-
Notifications
You must be signed in to change notification settings - Fork 744
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
Unable to resolve path to module 'react-day-picker/dist/style.css' #2516
Comments
I had similar issues importing into a Sass stylesheet, there are multiple style exports in the package.json and they're not resolving. When I finally did get one to resolve there was an additional error because the "default" key isn't last ("types" is getting added after it). I finally got it to work by using |
@karlshea Thanks |
👋 The correct path for the style is either If you're really having issues importing these, the source file is located at PS. In v9.1.4, we addressed some compatibility issues with older build systems—could you please give it a test? Thanks! See also #2521. |
@gpbl Thanks Importing from the source directly is not working (Unable to resolve path to module 'react-day-picker/src/style.css') I am using create-react-app |
@shareef-dweikat The import path is I don’t have any issues importing it using create-react-app. If you believe this is a bug in DayPicker, please reproduce the bug on stackblitz.com or codesandbox.io and open a support discussion. Thanks! |
It's still not working using sass-loader and webpack, follow up here: #2546 |
Hi,
I also have tried
import styles from 'react-day-picker/dist/style.module.css';
Actual Behavior
The build fails due to "Unable to resolve path to module 'react-day-picker/dist/style.css'" error
Version "react-day-picker": "^9.1.3"
The text was updated successfully, but these errors were encountered: