ManagementClient.users.create fails due to FormData is undefined

I am trying to use ManagementClient to create a new user after updating “auth0” from 3.6 to 4.3. But I am getting this error:


TypeError: Right-hand side of 'instanceof' is not an object

When I look at the code, I see that in this line: node-auth0/src/lib/runtime.ts at master · auth0/node-auth0 · GitHub, the FormData is undefined.

This is a typescript project, and I have tried to add “dom” to my libs array in the tsconfig.json file.

I am running node 18.

Hi @kim.lokoy

Welcome back to the Auth0 Community!

Thank you for posting your question, sorry for the late response to your question. Can I ask you to open an issue in github, I will be able to ping the repo maintainers to directly assist on your question.

Thanks
Dawid