Uncaught TypeError: can't access property "Component", u.a is undefined
- Dominant language
- JavaScript
- Stars
- 2k
- Forks
- 858
- PR merge metrics
- No merged PRs in 30d
Description
### I'm Submitting a ...
```
[ ] Bug report
[ ] Feature request
[x] Support request
```
### Steps to Reproduce
Just trying to use this package in a simple `index.html`, but the component is not shown:
### Expected Results
The picker should be shown along with the button
### Actual Results
If I open the above in a browser, all I see is the button, but the component is not shown or loaded and I see an error in the console:
```
Uncaught TypeError: can't access property "Component", u.a is undefined
```
### Minimal Reproduction of the Problem
#### index.html
```html
Report Generator
'use strict';
const { createElement: e, useState, useRef } = React;
const ReportGenerator = () => {
const [reportDate, setReportDate] = useState(new Date());
return e(
'div', {},
e('Datetime', {
input: false,
selected: reportDate,
onChange: setReportDate,
// initialViewMode: 'months',
open: true
}),
e('button', { onClick: () => alert("Report generated!!") }, "Generate Report")
);
};
ReactDOM.render(e(ReportGenerator), document.getElementById('root'));
```
Contributor guide
Assessment
This issue has not been assessed yet.