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

Error when upgrading to Next ^13.4.0 (tested all versions up to 13.4.12) when using getServersideProps and enable experimental-edge runtime #38177

Closed
Richard87 opened this issue Jul 26, 2023 · 2 comments · Fixed by #39981
Assignees
Labels
bug 🐛 Something doesn't work nextjs package: system Specific to @mui/system

Comments

@Richard87
Copy link

Richard87 commented Jul 26, 2023

Steps to reproduce 🕹

Link to live example: https://github.com/Richard87/test-mui

Steps:

  1. Insteall NextJs ^13.4.0 and enable experimental-edge runtime
  2. ...
  3. 💥

Current behavior 😯

Skjermbilde 2023-07-26 kl  22 28 18

Expected behavior 🤔

Everything working as expected

Context 🔦

I am trying to enable Clerk Auth middleware and getServersideProps for a better user experience, and running on Cloudflare requires experimental-edge runtime.

(Running on Vercel gives some other weird bugs/edgecases)

Your environment 🌎

npx @mui/envinfo
 npx @mui/envinfo

  System:
    OS: macOS 13.3.1
  Binaries:
    Node: 16.20.1 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 8.19.4 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 115.0.5790.114
    Edge: 114.0.1823.67
    Firefox: 115.0.2
    Safari: 16.4
  npmPackages:
    @emotion/react: ^11.11.1 => 11.11.1 
    @emotion/styled: ^11.11.0 => 11.11.0 
    @mui/base:  5.0.0-beta.8 
    @mui/core-downloads-tracker:  5.14.2 
    @mui/icons-material: ^5.11.16 => 5.14.1 
    @mui/material: ^5.13.4 => 5.14.2 
    @mui/private-theming:  5.13.7 
    @mui/styled-engine:  5.13.2 
    @mui/system:  5.14.1 
    @mui/types:  7.2.4 
    @mui/utils:  5.14.1 
    @types/react:  18.2.17 
    react: 18.2.0 => 18.2.0 
    react-dom: 18.2.0 => 18.2.0 
    typescript:  5.1.6 


@Richard87 Richard87 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jul 26, 2023
@Richard87 Richard87 changed the title Error when upgrading to Next ^13.4.0 (tested all versions up to 13.4.12) when using getServersideProps Error when upgrading to Next ^13.4.0 (tested all versions up to 13.4.12) when using getServersideProps and enable experimental-edge runtime Jul 26, 2023
@zannager zannager added the package: system Specific to @mui/system label Jul 27, 2023
@mj12albert
Copy link
Member

Possibly a duplicate? #36574

@Richard87
Copy link
Author

Yes, this comment feels spot on to what I'm experiencing: #36574 (comment)

I Upgraded @mui/material to ^5.14.2, but the error persisted

@mj12albert mj12albert assigned mj12albert and unassigned mnajdova Jul 29, 2023
@samuelsycamore samuelsycamore removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Sep 5, 2023
@oliviertassinari oliviertassinari added the bug 🐛 Something doesn't work label Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work nextjs package: system Specific to @mui/system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants