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
fix @deriving clash in rescript 9 #174
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/davesnx/styled-ppx/B3LscnXtN1nsQwf7T8Ju7Dd8Eh3J |
Hi @davesnx I think I am seeing this in 0.33.4? Thanks |
Hi @AlexMoutonNoble, this was merged a while ago. It shouldn't happen. Let me try to reproduce and meanwhile if you have a repo with the issue please share it in an issue please! Thanks for jumping into the PR |
Is there some cache of installed ocaml code that I may have old/conflicting versions installed in? Taking our web directory into a new git repo and building seems to succeed? We're also using graphql-ppx fwiw. |
Can you make sure to delete node_modules or at least styled-ppx folder and try again? |
reset node_modules and still doing it. hmm. |
@davesnx does this one work for you? https://github.com/noble-ai/styled-ppx-clash |
Indeed fails, but the issue comes from the
In your demo, there are some dependencies missing: rescript-react, bs-css and bs-css-emotion. If you can try with https://github.com/davesnx/try-styled-ppx |
Btw, feel free to jump on Discord and have it sorted: https://discord.gg/reasonml |
The thing is, if i remove the styled-ppx, the example code compiles fine. A |
Discovered the issue. Pushed a new version with a fix (0.34.0). I forgot to update linkall in the binary as well (was pushing styled-ppx + ppxlib) without knowing it. As a side note, in ReScript the syntax for payload to work with styled-ppx is using Probably worth fixing that issue as well ^^ |
Rad thanks David. I dont see 0.34 pushed up yet but ill keep an eye out. |
It's published (maybe it took a little longer after my comment?): https://www.npmjs.com/package/@davesnx/styled-ppx/v/0.34.0 Nevermind, let me know if you run into any issues we battle-tested at ahrefs.com but we don't use it in ReScript and some problems might appear, happy to fix them fast. |
See
rescript-lang/rescript-compiler#5036
https://forum.rescript-lang.org/t/were-bs-deriving-jsconverter-and-bs-deriving-abstract-removed/1333/12
and teamwalnut/graphql-ppx@b7aff4e