Skip to content

Instantly share code, notes, and snippets.

Relay client resolver issue in monorepo

Intro

In a monorepo with multiple apps consuming shared component packages, but where the apps have different relay client resolvers we have some problems that arises.

These problems stems from having different client resolvers for each app, e.g. App 1, and App 2.

Note

Each package using relay (both app and component package), i.e. "App 1", "App 2", and "Shared dependency package", have a relay.config.json inside it and runs the relay compiler from this package (e.g. during install/prepare step).

@ansemb
ansemb / uuid
Last active September 12, 2025 11:30
#!/bin/bash
# wget -O ~/.local/bin/uuid https://<gist>
# chmod u+x ~/.local/bin/uuid
deno eval --no-lock 'import { writeAllSync } from "jsr:@std/io@0.225.2"; const t = new TextEncoder().encode(self.crypto.randomUUID()); writeAllSync(Deno.stdout, t);'