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

Breaks production build #32

Closed
krendeleno opened this issue Jul 14, 2023 · 2 comments
Closed

Breaks production build #32

krendeleno opened this issue Jul 14, 2023 · 2 comments

Comments

@krendeleno
Copy link

My project stack:

  • Next 13.4.3
  • React 18.2.0

When i try to import @gravity-ui/date-utils in dev everything works fine, but production build breaks with these errors:

image
@ValeraS
Copy link
Collaborator

ValeraS commented Jul 17, 2023

Hi, can you please provide codesandbox with reproduction of this error?

@krendeleno
Copy link
Author

I've researched the issue and found out that my project was duplicating the packages with date-utils. Errors were caused by import of dayjs, so I've installed this package separately and set up the alias in the webpack config - this resolved the problem! 🎉

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

2 participants