arqex / react-datetime

A lightweight but complete datetime picker react component.
2k stars 869 forks source link

umd not working in browser #858

Open wiryonolau opened 1 year ago

wiryonolau commented 1 year ago

I'm Submitting a ...

[x] Bug report
[ ] Feature request
[ ] Support request

Steps to Reproduce

<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/react-datetime/3.2.0/css/react-datetime.css"
        integrity="sha512-2CReJcoiloeI8UXwx+i77n0DH9iCYZ+ukWTyaKNto9ItKbcDeEeJvxZIOD4V1qtfKAYvHEgl/X8pg28aTjbtYw=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-datetime/3.2.0/react-datetime.umd.js" integrity="sha512-AUzoePeNHdNI6DOiPPMwuORDrCkd1XCtAn8lcedJn9J0fPk8Eon/WKwhfUuKXtJ1zvqQJnzZgElDM58ZANKGjA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</head>
</html>

Expected Results

No console error

Actual Results

Uncaught TypeError: c.a is undefined
    <anonymous> DaysView.js:4
    Webpack 7
        n
        <anonymous>
        n
        <anonymous>
        <anonymous>
        <anonymous>
        <anonymous>
[DaysView.js:4:29](webpack://Datetime/src/views/DaysView.js)

Minimal Reproduction of the Problem

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