Error in Version 0.6.1-rc.1 #183
derekjwilliams
started this conversation in
General
Replies: 2 comments 1 reply
|
Looks like it may be in crates/stylex-path-resolver/src/resolvers/mod.rs Maybe starting around line 410? |
0 replies
|
Hi @derekjwilliams, Thanks for finding the problem. It really relates to I opened the issue #184 for this discussion. A fix for this problem will be available in the Thanks for helping to develop the project |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've run into a possible error in the release candidate version (0.6.1-rc-1) and wanted to give you a heads up.
I can add this as an Issue if that is more appropriate, but since it is an RC I wasn't sure if you'd want it there
I've put together a simple repo with a branch that exhibits the behavior. The code is based on the StyleX Next demo code (from here: https://github.com/facebook/stylex/tree/main/apps/nextjs-example)
The branch on my simple repo demonstrating the error: https://github.com/derekjwilliams/stylex-rscompiler-example/tree/Version_0.6.1-rc.1_of_swc_compiler
The error seems to be in trying to parse the path on this line:
(Note: if I change the import to use
@/app/globalTokens.stylexthe error does not occur.)On build I get:
All reactions