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

GADT Tutorial for Feedback

Here’s my stab at a GADT tutorial, borrowing some examples from the github issue I hope this can be a starting point for some official documentation of GADTs. As I mention in the tutorial, GADTs are...

View Article


GADT Tutorial for Feedback

Haven’t fully read this tutorial yet, but I just had to ask: What is the ominous “above reference”? I assume it is this example: Variant primitive type alias - #2 by dsiu because you referred to it in...

View Article


GADT Tutorial for Feedback

amazing tutorial! I’d be all for adding it to the docs, we could refine it later but it’s already in a very good state and much better than the current situation where it’s not documented at all!

View Article

GADT Tutorial for Feedback

Yeah this is amazing. First time it’s clicked for me.

View Article

Image may be NSFW.
Clik here to view.

I might make a video on React component in ReScript

Okay, I finally came around to making a video on this: - YouTube It doesn’t cover everything that is listed above, but it is a start. The main goal was to clarify some things with the JSX syntax in...

View Article


Image may be NSFW.
Clik here to view.

GADT Tutorial for Feedback

New GADT section in the docs is now merged! ReScript Documentation Generalized Algebraic Data Types | ReScript Language Manual Generalized Algebraic Data Types in ReScript

View Article

GADT Tutorial for Feedback

Amazing work @Josef-Thorne-A (and @fham for reviewing)!

View Article

How to upgrade to v12 in monorepo?

I have a monorepo with two apps and one shared lib: node_modules/ web/ - lib/ - apps/ - app1/ - app2/ Both apps and the lib have own rescript.json. Both apps have web/lib as a dependency. How to...

View Article


How to upgrade to v12 in monorepo?

As a fallback, use rescript legacy. Otherwise, create a root-level rescript.json and list your three projects as dependencies. Ensure that the name fields in each package.json match the corresponding...

View Article


How to upgrade to v12 in monorepo?

hey @nojaf thanks for the pointers! After I added all monorepo packages as deps and set sources as an empty array, it resolved the deps. But I bumped into the issue with @rescript/react: it still uses...

View Article

How to upgrade to v12 in monorepo?

Yes, could you try bumping @rescript/react to 0.14.0

View Article

How to upgrade to v12 in monorepo?

Ah, yeah, I thought I’m already on 0.14, but I’m on 0.13. Trying it, thanks!

View Article

Image may be NSFW.
Clik here to view.

How to upgrade to v12 in monorepo?

Alright, I’m arrived at Pervasives stage The module or file Pervasives can't be found. - If it's a third-party dependency: - Did you add it to the "dependencies" or "dev-dependencies" in...

View Article


How to upgrade to v12 in monorepo?

Wonderful, that would indicate that @rescript/runtime is not found. Could you describe in which folder it is installed? Are you running rescript build from your repo root?

View Article

How to upgrade to v12 in monorepo?

Actually, I didn’t have @rescript/runtime installed. After I installed it and added to the dependencies section of lib package, the Pervasives is gone, but I’m getting this: [1/7] 📦 Building package...

View Article


How to upgrade to v12 in monorepo?

From the root, it should have build your dependencies. It is normal that your root rescript.json doesn’t have any sources. It makes sense to me that building from the package level won’t work, that is...

View Article

How to upgrade to v12 in monorepo?

From the root, it exits with 0: ❯ npm exec -- rescript clean Cleaning... 0 files. ❯ npm exec -- rescript build >>>> Start compiling Dependency Finished >>>> Finish compiling 7...

View Article


How to upgrade to v12 in monorepo?

Yes, giving the existing problems that makes sense. But after running from the root, you do get the compiled javascript files right?

View Article

Image may be NSFW.
Clik here to view.

How to upgrade to v12 in monorepo?

nojaf: But after running from the root, you do get the compiled javascript files right? Nope, when running from the root, nothing gets built. It just exits with zero.

View Article

How to upgrade to v12 in monorepo?

So basically, listing dependencies in the root rescript.json helps with resolving monorepo packages when running rescript build for a specific package, but it doesn’t build the packages when running...

View Article
Browsing all 2592 articles
Browse latest View live