Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The 'views' parameter causes error in Nextjs 13 #2436

Closed
4 of 5 tasks
PINTALINA opened this issue Aug 16, 2023 · 1 comment
Closed
4 of 5 tasks

The 'views' parameter causes error in Nextjs 13 #2436

PINTALINA opened this issue Aug 16, 2023 · 1 comment
Labels

Comments

@PINTALINA
Copy link

PINTALINA commented Aug 16, 2023

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/sad-herschel-53jl2y

Bug description

Using parameter 'views' calling an error.

I have tried to set an object or an array to 'views' but the problem was the same.

The full error looks like:
image

Expected Behavior

Param 'views' should not cause an error.

Actual Behavior

No response

react-big-calendar version

1.8.2

React version

nextjs 13.4.16

Platform/Target and Browser Versions

Windows, Chrome 115.0.5790.171

Validations

  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a react-big-calendar issue and not an implementation issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@PINTALINA PINTALINA added the bug label Aug 16, 2023
@Dujota
Copy link

Dujota commented Aug 17, 2023

You need to move the Big Calendar into a wrapper component that has

"use client" and then remove the use client from the page.tsx, this iwll resolve your issue.

@PINTALINA

here is the next13 app dir workign example

https://github.com/Dujota/rbc-next13-working-example/tree/master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants