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

NextJS Versions Broken: 0.155.0 Onwards #3003

Closed
SaavanNanavati opened this issue Sep 11, 2023 · 1 comment
Closed

NextJS Versions Broken: 0.155.0 Onwards #3003

SaavanNanavati opened this issue Sep 11, 2023 · 1 comment

Comments

@SaavanNanavati
Copy link

SaavanNanavati commented Sep 11, 2023

  1. Run yarn create r3f-app next my-app which is the starter kit for react three fiber with NextJS.
  2. Change the version of three from ^0.154.0 to ^0.155.0.

Before: 0.154.0 (Working)
Screenshot 2023-09-11 at 1 08 14 PM

After: 0.155.0 (Broken)
Screenshot 2023-09-11 at 1 07 47 PM

ThreeJS is currently on 0.156.1. I did some debugging to determine that 0.155.0 is the version that breaks the react three fiber demo with NextJS. I'm not even sure what is the bug here, it looks like some textures aren't loading or something?

I don't know if this is a bug with three or a bug with react-three-fiber, I'm honestly not very familiar with the libraries as this is my first time working with them. I just figured I would report it in case the team isn't already aware since the support for NextJS seems rather exceptional otherwise. Really awesome library!

Thanks,
Saavan

@SaavanNanavati SaavanNanavati changed the title NextJS 0.156.1 Broken NextJS Versions Broken: 0.155.0 Onwards Sep 11, 2023
@CodyJasonBennett
Copy link
Member

R3F does not control how three.js behaves. This is a breaking change from r155 where it defaults to physical lighting since mrdoob/three.js#26392. You can opt out of this temporarily with <Canvas gl={{ useLegacyLights: true }} />.

@CodyJasonBennett CodyJasonBennett closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants