Found a weird edge case, not worthy of a bug, make sure that package.json has a name attribute #192
Replies: 4 comments 3 replies
-
|
The field |
Beta Was this translation helpful? Give feedback.
-
|
Can we have StyleX use an empty string (or some other fixed value) when name is not present in package.json? |
Beta Was this translation helpful? Give feedback.
-
|
I see that this case is problematic to use, so I will make the "name" field optional as well |
Beta Was this translation helpful? Give feedback.
-
|
PR #202 has been merged and will be available in release |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was updating an existing project from version 0.5.1 to 0.6.1 and I kept getting these errors on build:
I was unable to reproduce this on a new project, it turns out that for some reason I did not have a name attribute in my project.json in my existing project. Added the missing line and that fixed it.
To see this on a very simple project, clone this repo:
[email protected]:derekjwilliams/stylex-rscompiler-example.git
Edit the package.json, removing this line:
then run
npm buildBeta Was this translation helpful? Give feedback.
All reactions