Trying to run examples, getting ‹TypeError: registry.handler is not a function› errors
❓type: question🌐engine: html5
Hi all,
I’m new to Rivet and have been trying to run the examples since Sunday without much success. Depending on the example, I’m hitting different issues.
Are the examples currently being worked on? If so, is there one known to work, just to verify that everything is set up correctly on my machine? Alternatively, is there any additional setup required (e.g. environment variables from the Rivet dashboard) before running the examples?
git clone https://github.com/rivet-dev/rivet.gitcd rivet/examples/actor-actionsnpm installnpm run dev
git clone https://github.com/rivet-dev/rivet.gitcd rivet/examples/actor-actionsnpm installnpm run dev
Both backend and frontend start correctly, and the UI loads at http://localhost:5173. However, as soon as the page is opened, the backend logs repeatedly show:
TypeError: registry.handler is not a function at .../src/server.ts:5:41...GET http://localhost:3000/api/rivet/metadata?namespace=default [500]
TypeError: registry.handler is not a function at .../src/server.ts:5:41...GET http://localhost:3000/api/rivet/metadata?namespace=default [500]
Build and scale stateful backends. Rivet Actors is a library for long-lived processes with durable state, realtime, and scalability. Easily self-hostable and works with your infrastructure.