arqex/react-datetime

Minified React error #130

ignacio-dev opened this issue · 1 comments

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)

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;