Quantcast
Channel: ReScript Forum - Latest posts
Browsing all 2592 articles
Browse latest View live

Rescript 12 monorepo with Bun

Hi! I was just testing bun with rescript 12 RC in a monorepo setup, did the workspaces in package.json, listed the package dependencies in the root rescript.json and got this error when building: We...

View Article


Rescript 12 monorepo with Bun

FYI: “isolated installs” have been added in bun 1.3, but they thinking about to change the default behavior back to “hoisted” and it’s also configurable (as stated in you link).

View Article


Rescript 12 monorepo with Bun

Yes, I recently had to add [install] linker = "hoisted" as well to my bunfig.toml because rescript stopped working. Could you please send a PR with your sample to GitHub - rescript-lang/end-to-end:...

View Article

Image may be NSFW.
Clik here to view.

Rescript 12 monorepo with Bun

nojaf: Could you please send a PR with your sample What would the repo with the repro be useful for? to reproduce the error message and improve it? The solution is an unfortunate interaction between...

View Article

Image may be NSFW.
Clik here to view.

Rescript 12 monorepo with Bun

joakin: What would the repo with the repro be useful for? We’d like to support Bun 1.3 out of the box with ReScript. A small reproducer where it fails makes it much easier to start investigating. I’m...

View Article


Best practice developer copilot rules for React?

I’ve been experimenting with a localized MCP server lately and put together a short video about it. It turned out surprisingly interesting; there’s a lot of potential in giving AI a structured view of...

View Article

Function directives

Simple one! How do I put “use memo” or “worklet” etc at the top of a function?

View Article

Function directives

Try @@directive

View Article


Function directives

Use @directive on the function definition (not the let binding): let someFn = @directive("'use memo'") () => { Console.log("Hello") } function someFn() { 'use memo'; console.log("Hello"); }

View Article


Function directives

Thanks, that’s only allowed at root file level though.

View Article

Function directives

Thanks, this doesn’t work in ReScript 11.1.4 at least. Is there a minimum version for this?

View Article

Function directives

Playground link

View Article

Function directives

I think this is v12 only, which is in release candidate now.

View Article


Rescript in neovim

I’ve just come across this issue myself after coming back to some rescript code after not touching it for a few months. Tried some of the changes above but no luck so far. Don’t suppose you ended up...

View Article

Rescript in neovim

Hi @popstarfreas No, not yet. I haven’t had to time for testing the rescript setup more in depth. That’s a pity that there is some friction when getting started with the language because I’d really...

View Article


Introducing Bibimbob: VSCode Extension for ReScript Dependency Visualization

Great extension! Thank you. I always wanted to be able to quickly visualize where a React component is being used without having to cmd F “<MyComponent”. This helps quite a lot for this purpose....

View Article

[ANN] Reforging the ReScript Build System

We wrote a blog post about the new build system in v12: Reforging the ReScript Build System | ReScript Blog Feel free to ask any questions you have about it. Happy building!

View Article


Rescript in neovim

I looked a bit closer into my issue. I made sure I added the capabilities to the config as per previous replies, but that by itself wasn’t working. Checking an older version of the server, the...

View Article

Rescript in neovim

@popstarfreas thanks for the heads up! I’ll definitely try that. It’s a bit surprising given other LSPs for other languages are working well!

View Article

Rescript in neovim

I’m glad to hear that it works for you now. Will be a big help for other neovim users. I have installed the inotify-tools as well. I’m sure that this was the missing puzzle piece.

View Article
Browsing all 2592 articles
Browse latest View live