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

"Unexpected fiber popped" / "An unexpected error has occurred" #8886

Closed
ryaninvents opened this issue Sep 28, 2019 · 11 comments · Fixed by #8887
Closed

"Unexpected fiber popped" / "An unexpected error has occurred" #8886

ryaninvents opened this issue Sep 28, 2019 · 11 comments · Fixed by #8887
Labels
Upstream Related to using Next.js with a third-party dependency. (e.g., React, UI/icon libraries, etc.).

Comments

@ryaninvents
Copy link

Bug report

Describe the bug

At least two of the NextJS examples do not work when run "out of the box".

To Reproduce

  1. Follow the steps in either of these two READMEs:
  2. Run npm install && npm run dev.
    • React will report "Unexpected fiber popped" and "Unexpected pop" in the console.
    • In the Material UI example, buttons will not demonstrate the ripple effect when clicked. In my application, the effects are more severe, leading to loss of interactivity.
  3. Deploy using npx now. Resulting application will report errors.

Expected behavior

Given examples work when deployed and run.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • OS
    • Development: Ubuntu 18.04 LTS
    • Deployment: Zeit Now platform
  • Browser: Reproducible in Chrome and Firefox
  • Version of Next.js: 9.0.6 (current latest)
@martindavid
Copy link

martindavid commented Sep 28, 2019

I got this error as well. Did some debugging, and found out it's happening on latest NextJS and React 16.10.0. If you're using 16.9.0 it works fine.

@willtrking
Copy link

Same issue here, and same resolution as @martindavid

@coolsoftwaretyler
Copy link

coolsoftwaretyler commented Sep 28, 2019

Same issue here. Just going through the getting started tutorial and the index page isn't clearing, rendering itself twice, and throwing errors in console.

Switching to 16.9.0 worked as well.

Screen Shot 2019-09-27 at 9 16 11 PM

@Timer
Copy link
Member

Timer commented Sep 28, 2019

Hi everyone! Like the error message suggests, this may be a bug with React 16.10.
I've opened an issue in the React project to track this: facebook/react#16938.

Please downgrade to react@16.9.0 and react-dom@16.9.0 for the time being.

Thanks!

EvHaus added a commit to GlobexDesignsInc/magna.gg that referenced this issue Sep 28, 2019
EvHaus added a commit to EvHaus/haus.gg that referenced this issue Sep 28, 2019
EvHaus added a commit to GlobexDesignsInc/globexdesigns.com that referenced this issue Sep 28, 2019
EvHaus added a commit to GlobexDesignsInc/gxdrecords.com that referenced this issue Sep 28, 2019
@Timer Timer added the Upstream Related to using Next.js with a third-party dependency. (e.g., React, UI/icon libraries, etc.). label Sep 28, 2019
@timneutkens
Copy link
Member

Keeping this open until the PR is on stable.

@timneutkens timneutkens reopened this Sep 28, 2019
@timneutkens
Copy link
Member

Just released a new canary (will be on npm soon) https://github.com/zeit/next.js/releases/tag/v9.0.7-canary.9

@timneutkens
Copy link
Member

Released on stable too: https://github.com/zeit/next.js/releases/tag/v9.0.7.

Note that in general we do not ship stable versions on weekends but this issue affects basically everyone getting started with Next.js / React and everyone upgrading.

@timneutkens
Copy link
Member

I'm going to close this issue as the patch has been merged on both canary/stable and this is an upstream issue raised by @Timer here: facebook/react#16938

@acdlite
Copy link
Contributor

acdlite commented Sep 28, 2019

This is now fixed in v16.10.1.

However, it's more like a workaround to fail gracefully because the behavior is not supported. It only accidentally worked in 16.9. We will warn in a future minor.

So we need to figure out how to address this in Next.

More context here: facebook/react#16938 (comment)

@ryaninvents
Copy link
Author

Thanks so much for your help identifying and fixing this! Sorry I didn't recognize that it was an upstream error; I made some incorrect assumptions based on the error message.

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Upstream Related to using Next.js with a third-party dependency. (e.g., React, UI/icon libraries, etc.).
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants