Cloudflare DevelopersCD
Cloudflare Developers2y ago
7 replies
jason

`Error: Dynamic require of node:path is not supported` causes runtime error - how to troubleshoot?

My SvelteKit project on CF Pages builds successfully and has been great. All routes still work, except for a POST route, that gives this error.

- I do not have node:path in my code (!)
- I have nodejs_compat enabled (screenshot)
- I removed deps and simplified this route

Cloudflare does not give a stack track, frustratingly, so I don't know how to troubleshoot further.

Any tips for how to investigate further?
Was this page helpful?