Bug with rescript compilation
ashton opened this issue · 11 comments
Hey! I've installed "@davesnx/styled-ppx": "^0.50.0",
and when trying to run my project using rescript (10.1.4) with rescript-react (0.11.0), it shows the following error
It seems that the compilation of this line is generating triple quotes and thus, an invalid syntax in the .bs.js
file.
In the meantime, those can be fixed by manually escaping the quotes
Which quotes exactly? (version 0.40.1 is working perfectly)
Which quotes exactly?
For example; case """ :
to case "\"":
(version 0.40.1 is working perfectly)
We shall investigate and fix what could be causing the regression. Thanks for the report
For example;
case """:
tocase "\"":
but those are generated files, everytime I run a npm install
this would be overwritten
Also, not sure if it's related, but the PPX itself is not being recognized by rescript:
@lubegasimon Do you want me to open another issue?
Also, not sure if it's related, but the PPX itself is not being recognized by rescript:
@lubegasimon Do you want me to open another issue?
Yes, though it seems something is missing out during the installation. Does this -- https://styled-ppx.vercel.app/getting-started guide help?
It seems that the compilation of this line is generating triple quotes and thus, an invalid syntax in the .bs.js file
No, one occurrence is at
I believe the issue has been fixed in main, but didn't release a npm package yet. Let me try to reproduce and double-check ReScript and release a 0.51
Updated the https://github.com/davesnx/try-styled-ppx repository with ReScript 10 and styled-ppx 0.53 working nicely