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

Minified React error #130 #843

Open
ignacio-dev opened this issue Aug 30, 2022 · 1 comment
Open

Minified React error #130 #843

ignacio-dev opened this issue Aug 30, 2022 · 1 comment

Comments

@ignacio-dev
Copy link

I'm Submitting a ...

[ X] Bug report
[ ] Feature request
[ ] Support request

Steps to Reproduce

  1. Install package using npm
  2. Insert component in a page
  3. Running npm run build using Vite (in Laravel) (works well on npm run dev)

Expected Results

Datetime to render with no errors

Actual Results

App crashes, console shows:
Error: Minified React error #130;

Minimal Reproduction of the Problem

Other Information (e.g. stacktraces, related issues, suggestions how to fix)

@baledev
Copy link

baledev commented Sep 23, 2022

Face the same error, it's a known issue mentioned in rollup/plugin#481.

My hacky sollution is:

import ReactDatetimeClass from "react-datetime";
const DateTime = ReactDatetimeClass.default ?? ReactDatetimeClass;

gidomanders pushed a commit to 42BV/ui that referenced this issue Mar 16, 2023
When this library is used in a project that runs rollup, the
DateTimeInput causes issues on production environments. It is a known
issue in rollup, see arqex/react-datetime#843.

Added temporary workaround to prevent issues in production environments
with DateTimeInput.
gidomanders pushed a commit to 42BV/ui that referenced this issue Mar 16, 2023
When this library is used in a project that runs rollup, the
DateTimeInput causes issues on production environments. It is a known
issue in rollup, see arqex/react-datetime#843.

Added temporary workaround to prevent issues in production environments
with DateTimeInput.
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