jquense / react-big-calendar

gcal/outlook like calendar component
http://jquense.github.io/react-big-calendar/examples/index.html
MIT License
7.93k stars 2.25k forks source link

Error "Super expression must either be null or a function" #2615

Closed wyxcoder closed 5 months ago

wyxcoder commented 5 months ago

Check that this is really a bug

Reproduction link

...

Bug description

I got the below error when add the calendar component. I am wondering if this is next.js 13 related? And when this can be fixed?

1 | import setPrototypeOf from "./setPrototypeOf.js"; 2 | function _inherits(t, e) {

3 | if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | ^ 4 | t.prototype = Object.create(e && e.prototype, { 5 | constructor: {

Expected Behavior

No response

Actual Behavior

No response

react-big-calendar version

latest

React version

19.0.0-rc

Platform/Target and Browser Versions

Chrome

Validations

Would you like to open a PR for this bug?

cutterbl commented 5 months ago

I have no idea what this is. No stack trace, no CodeSandbox reproduction. Impossible to know the root cause without more information.

wyxcoder commented 5 months ago

use code error.

ChromeGG commented 4 months ago

@wyxcoder How did you solve it? I faced the same issue :)

AdrianRamiro commented 4 months ago

@ChromeGG very likely related to https://stackoverflow.com/questions/74614922/super-expression-must-either-be-null-or-a-function-nextjs-13

Add 'use client' to the loading page