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

Next.js 15.1.7 turbopack issue #5441

Open
jiwonkim16 opened this issue Feb 21, 2025 · 0 comments
Open

Next.js 15.1.7 turbopack issue #5441

jiwonkim16 opened this issue Feb 21, 2025 · 0 comments

Comments

@jiwonkim16
Copy link

Describe the bug
I am encountering the following error when running my Next.js 15.1.7 development environment with the --turbo (or --turbopack) option enabled, while using react-datepicker:

TypeError: _extendStatics is not a function
This error appears to originate from the react-datepicker distribution (index.es.js). Notably, this issue did not occur with an earlier version (e.g., Next.js 15.0.4).

To Reproduce
Steps to reproduce the behavior:

Run the Next.js 15.1.7 development environment with the --turbo (or --turbopack) option enabled.
Use react-datepicker in the project.
Render and interact with the date picker.
Observe the above error in the console.
Expected behavior
react-datepicker should work without throwing this error and behave as it did with Next.js 15.0.4.

Screenshots

Image

Desktop (please complete the following information):

OS: Windows
Browser: Chrome
Version: latest]

Additional context
This error only occurs when the --turbo (or --turbopack) option is enabled in Next.js 15.1.7.

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

1 participant