Skip to content

Conversation

@vincentfretin
Copy link
Contributor

Description:

NextJS client rendered don't show the styles in A-Frame 1.7.0 because of my commit 84d4607 It worked on 1.6.0.
I didn't know that framework polyfilled process with process.browser when rendering client side.

This fixes #5679

Changes proposed:

  • Put back the process.browser === true check in isBrowserEnvironment for Next.js with "use client" to have the styles

…or Next.js with "use client" to have the styles (fix aframevr#5679)
@dmarcos dmarcos changed the title Put back the process.browser === true check in isBrowserEnvironment Put back the process.browser === true check in isBrowserEnvironment (fix #5679) Mar 5, 2025
@dmarcos
Copy link
Member

dmarcos commented Mar 5, 2025

Thanks!

@dmarcos dmarcos merged commit ff1d9b6 into aframevr:master Mar 5, 2025
3 checks passed
@vincentfretin vincentfretin deleted the processbrowser branch March 5, 2025 09:06
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

Successfully merging this pull request may close these issues.

Css styles are not applied with next.js

2 participants