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

Bug in Css_Legacy_Core.ml #469

Closed
nojaf opened this issue May 6, 2024 · 1 comment
Closed

Bug in Css_Legacy_Core.ml #469

nojaf opened this issue May 6, 2024 · 1 comment

Comments

@nojaf
Copy link

nojaf commented May 6, 2024

Hello,

I'm trying out this project with ReScript v0.11.
I followed the instructions on this page.

module StyledDiv = %styled.div(`
  color: red;
`)
Dependency on @davesnx/styled-ppx/css
rescript: [1/1] Css_Legacy_Core.cmj
FAILED: Css_Legacy_Core.cmj

  We've found a bug for you!
  packages/css/js/Css_Legacy_Core.ml:1614:17-39

  This function is a curried function where an uncurried function is expected

FAILED: cannot make progress due to previous errors.
Failure: /home/nojaf/projects/my-pkmn-rescript-app/node_modules/rescript/linux/ninja.exe 
Location: /home/nojaf/projects/my-pkmn-rescript-app/node_modules/@davesnx/styled-ppx/css/lib/bs
>>>> Finish compiling (exit: 1)

Am I doing something wrong or would this be a compatibility problem with the latest ReScript?

Also, do I need to install @emotion/react when using %styled.div?

@davesnx
Copy link
Owner

davesnx commented May 6, 2024

Hey @nojaf, currently styled-ppx doesn't support uncurry by default. Tracking the progress here: #415

Closing this

@davesnx davesnx closed this as completed May 6, 2024
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