Error compiling @rescript/core with Rescript 11
There was a breaking change in the List API in 1.1.0. Align List api with other modules by cknitt · Pull Request #195 · rescript-association/rescript-core · GitHub. Sorry, it does not follow SemVer,...
View Article[ANN] ReScript Core 1.1.0 is out
works now on the newest version ReScript Documentation ReScript Playground Try ReScript in the browser
View ArticleError compiling @rescript/core with Rescript 11
But I’m not sure what do I have to do to be compliant with that breaking change, because versions above 1.0 should be compatible with Rescript 11 right? Should I downgrade it? Or, even it shows the...
View ArticleVite + React: no HMR, page reloads on every change
Just to confirm for future people having this problem, it does need to be PascalCased, at least in the latest version as of this date.
View ArticleWhat's the easiest way to enable React fast-refresh with uppercase component...
Fast Refresh requires the function name to be defined (no anonymous functions), and it must be pascal cased.
View ArticleError compiling @rescript/core with Rescript 11
Well, can you create a minimal repro? I just created a dummy project with ReScript 11.0.1 and Core 1.1.0 and tried using List.reduceReverse but everything works fine. Both in curried and uncurried mode.
View ArticleWhat's the easiest way to enable React fast-refresh with uppercase component...
It seems component naming is no longer an issue with Rescript and Fast Refresh, but the Rescript compiler would re-compile all files and this triggers a hot reload for all files, including non...
View ArticleError compiling @rescript/core with Rescript 11
Did you try rescript clean and build again?
View ArticleCustom data-attributes in JSX
Should be in the next couple of days. We are preparing the next main release currently. But do not hesitate to install one of the release candidates and try it now. Btw.: When you use npm create...
View ArticleDisable dead code hints
Hey all, I’m using VSCode. Is it possible to disable dead code warnings in-editor at least temporarily (and globally) without the need for the @dead decorator? It’s an awesome feature but it can be a...
View ArticlegenType .tsx includes type import to non-existent built-in
I’ve got a simple button component but the .tsx generated includes this import that doesn’t exist: import type {Jsx_element as PervasivesU_Jsx_element} from './PervasivesU.gen'; I’m seeing this a lot...
View ArticleDisable dead code hints
Check out the Warning Numbers section of the docs, you can disable specific warnings inside your rescript.json using the number { "warnings": { "numbers": "-27" } }
View ArticleDisable dead code hints
Maybe you’re talking about the code analyzer powered by reanalyze? If so, you can just turn it off, something like > Stop Code Analyzer. There’s also a config option to run it automatically that...
View ArticleMinimum cut code relocation?
You have a way to clean up code by moving parts of it to where they fit best. It’s like organization a bookshelf so you can find books easily without needing to look all over the place.
View ArticleDisable dead code hints
I wonder if @thislogancall is looking for something like @dead or @live decorators. ReScript Syntax Lookup Syntax Lookup | ReScript Documentation Discover ReScript syntax constructs with our lookup...
View ArticleDisable dead code hints
@zooshme I’ve used @dead but i want to disable it globally for now. Using the reanalyze config to suppress everything worked per @zth’s suggestion. Like so: rescript.json "reanalyze": { "suppress":...
View ArticleHow to handle the fact that js and js libs are throwing exceptions all over?
so when I work in rust, I usually end up with programs that never crash hard - this is because rust does a good job of propagating error handling requirements throughout your codebase with its result...
View ArticleError compiling @rescript/core with Rescript 11
Given GitHub - jihchi/rescript-core-reducereversedu-uncurried: A minimal reproducible example illustrating the issue: https://forum.rescript-lang.org/t/error-compiling-rescript-core-with-rescript-11,...
View ArticleHow to handle the fact that js and js libs are throwing exceptions all over?
Unlike Elm, ReScript makes it easy to interact with external JS. You lose the safety that it brings in Elm, but it makes adoption easier and it allows ReScript to be part of the JS ecosystem and not...
View ArticleHow to handle the fact that js and js libs are throwing exceptions all over?
You should deal with same situation while you’re working in Rust or even Erlang or Haskell if there is any unsafe external binding or embedded asm I have very similar approach @jderochervlk mentioned...
View Article