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

How to Resolve Export Format Conflicts Between ReScript and React Router v7...

It’s probably the alias when exporting. You need to make sure somehow that loader is not renamed in the export object I think.

View Article


How to Resolve Export Format Conflicts Between ReScript and React Router v7...

export { loader$1 as loader, make, $$default as default, } This is the final output generated by Rescript. When I changed the js file to export const loader = XXX, export default XXX It started up...

View Article


How to Resolve Export Format Conflicts Between ReScript and React Router v7...

What does the code look like? module Inner = { let loader = async () => Console.log("inner") } let loader = async () => Console.log("toplevel") e.g. this compiles to async function loader() {...

View Article

The playground is down

no problem, thank you!

View Article

Osury - OpenAPI 3.x → ReScript codegen with Sury schemas

Excited to share osury — an open-source CLI tool that generates ReScript types with Sury schemas from OpenAPI specifications. If you work with OpenAPI and ReScript, you know how tedious it is to...

View Article


How to Resolve Export Format Conflicts Between ReScript and React Router v7...

The most basic client-side React Router approach that can be executed normally. let default = () => { <strong> {"hi"->React.string} </strong> } import * as JsxRuntime from...

View Article

How to Resolve Export Format Conflicts Between ReScript and React Router v7...

I tried writing a vite transformation plugin to enable code written in ReScript to run properly in SSR mode with React Router v7 in Vite. However, I still haven’t found the reason why it doesn’t...

View Article

Interest in Shadcn UI?

shadcn has started supporting base-ui as an alternative to radix-ui, so I’d say it’s still a pretty stable foundation. An AI could indeed generate the bindings to base-ui (using ReScript Bindings...

View Article


How to Resolve Export Format Conflicts Between ReScript and React Router v7...

It’s tricky to work around, but the rescript doc site is using react router v7 with loaders and HMR works for the most part. There are a lot of files with multiple components that can be broken up,...

View Article


How to Resolve Export Format Conflicts Between ReScript and React Router v7...

I can’t find where I read it, but there afaik there is a difference between these two exports and how they work in ESM and tree shaking. // option one export const foo = 42 // option two const foo =...

View Article

[ANN] ReScript 12 is out!

Just here to say I just migrated to 12 at my current job and have been using it for a couple of days now. I really like what you folks have done! Ergonomics are now clearly better than before.

View Article

Compiler crash in complex test file. Fatal error: Parmatch.all_record_args

I’m vibing/steering a rather large test file. open Vitest open TodoEvent module Fixtures = { let mockUser: User.t = { id: UserId.fromString("user-test-1"), first_name: "Test", last_name: "User",...

View Article

Image may be NSFW.
Clik here to view.

Compiler crash in complex test file. Fatal error: Parmatch.all_record_args

Thanks for reporting. I can reliably get an “unexpected error” in the playground as well with this example: ReScript Documentation ReScript Playground Try ReScript in the browser

View Article


Image may be NSFW.
Clik here to view.

Compiler crash in complex test file. Fatal error: Parmatch.all_record_args

And I might have a fix github.com/rescript-lang/rescript Fix Parmatch crash on empty record head patterns rescript-lang:master ← fhammerschmidt:fix-parmatch-dict-error opened 11:08PM - 13 Feb 26 UTC...

View Article

Compiler crash in complex test file. Fatal error: Parmatch.all_record_args

please try installing npm i https://pkg.pr.new/rescript-lang/rescript@8246 and see if it fixes your error.

View Article


Image may be NSFW.
Clik here to view.

Compiler crash in complex test file. Fatal error: Parmatch.all_record_args

@fham Awesome! I haven’t been able to use https://pkg.pr.new/rescript-lang/rescript@8246 without having other issues; but your fix pointed me to a workaround: ReScript Documentation ReScript...

View Article

How to successfully use `reanalyze`?

I trying to setup dce analysis for a project. I have added this to our rescript.json "reanalyze": { "analysis": ["dce", "exception"], "suppress": ["test", "src/libs"] } Rescript’s new build system...

View Article


How to successfully use `reanalyze`?

What version of Rescript do you use? This false warning was removed in the latest version if I remember correctly.

View Article

How to successfully use `reanalyze`?

@tsnobip I’m using 12.1.0: $ rescript --version rescript 12.1.0 $ rescript [1/3] 🧹 Cleaned previous build due to compiler update [1/3] 🧹 Cleaned 0/0 in 0.26s [2/3] 🧱 Parsed 896 source files in 1.15s...

View Article

How to successfully use `reanalyze`?

Can you try with 12.2.0-rc.1?

View Article
Browsing all 2592 articles
Browse latest View live