Skip to content
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

Package path ./dist/react-datepicker.css is not exported from package #5437

Open
maiconfluency opened this issue Feb 20, 2025 · 6 comments
Open

Comments

@maiconfluency
Copy link

"react-datepicker": "^8.1.0",

Image
@balajis-qb
Copy link
Contributor

Hi @maiconfluency ,

I couldn't able to reproduce the mentioned issue. I tried installing the recent version (v 8.1.0) of the package and it's working fine for me. Can you try uninstalling and reinstalling the package.

Image

@oh-dev-life
Copy link

I am facing this issue also

@Karabur
Copy link

Karabur commented Feb 25, 2025

Have the same with Next v12
The problem is that it does not recognize wildcard in react-datepicker's package.json exports field.
My guess is that Next is old, and probably either Webpack itself is also old or Webpack's default configuration has that issue.

For now, I've solved by copying react-datepicker.css to my project and importing locally.

@maiconfluency
Copy link
Author

Have the same with Next v12 The problem is that it does not recognize wildcard in react-datepicker's package.json exports field. My guess is that Next is old, and probably either Webpack itself is also old or Webpack's default configuration has that issue.

For now, I've solved by copying react-datepicker.css to my project and importing locally.

i have the same problem but with next v11. Now I am using react-datepicker v5. It is not possible to build with v7.

@OwnerOfThisIsle
Copy link

+1

1 similar comment
@ludovers
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants