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

Next.js example app is broken #118

Closed
nedjulius opened this issue Dec 10, 2023 · 3 comments
Closed

Next.js example app is broken #118

nedjulius opened this issue Dec 10, 2023 · 3 comments

Comments

@nedjulius
Copy link
Contributor

nedjulius commented Dec 10, 2023

The problem

The Next.js example app is not working due to the Only static values are allowed inside of a stylex.create() call error.

How to reproduce

Steps to reproduce:

  1. Install dependencies of monorepo
  2. Navigate to nextjs-example
  3. Run npm run build (or npm run dev and the navigate to https://localhost:{port})

Expected behavior

The app should not crash due to the NON_STATIC_VALUE error. Seems like the token file is following the correct conventions.

Environment (include versions). Did this work in previous versions?

  • Node version 18.19
  • macOS Ventura 13.3.1

It was my first time running this example

@nmn
Copy link
Contributor

nmn commented Dec 10, 2023

I'm not able to reproduce this on my mac. Can you try running npm run build at the root directory one more time?

image

@nedjulius
Copy link
Contributor Author

@nmn alright this fixed the problem lol, perhaps I had some outdated external builds. thanks for quick response and help!

@nmn
Copy link
Contributor

nmn commented Dec 10, 2023

There is a design issue because the reset styles in global.css are overriding StyleX styles. I'm fixing this shortly.

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