react-datetime icon indicating copy to clipboard operation
react-datetime copied to clipboard

Minified React error #130

Open ignacio-dev opened this issue 2 years ago • 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)

ignacio-dev avatar Aug 30 '22 14:08 ignacio-dev

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;

baledev avatar Sep 23 '22 09:09 baledev