react-datetime
react-datetime copied to clipboard
Minified React error #130
I'm Submitting a ...
[ X] Bug report
[ ] Feature request
[ ] Support request
Steps to Reproduce
- Install package using npm
- Insert component in a page
- 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;