Results 6 comments of Edvin

Same issue here. I think the solution is this but the lib has to be updated. ``` const util = require('util'); require('util.promisify').shim(); ```

@Almenon I tried node v16, v18, and v20 . Open to suggestions. I am using `Vite 4.3.9` and using `rollup-plugin-node-polyfills/polyfills` to resolve node functions

@dannywamuya Oh nice, I did not think of that. In my code above, I didn't specify the method - and I bet it defaults to a GET.

@schiller-manuel Just one opinionated comment/suggestion. Since, I used a mutation in the code example - should the `serverFn` default to a POST instead when its called from a mutation.

I have a super minimal example that I uploaded here: [https://github.com/uninstallit/basic-rsc](https://github.com/uninstallit/basic-rsc) `pnpm install` `pnpm build` `pnpm start` Open browser on `http://localhost:4000` and I get `Cannot read properties of undefined (reading...