Issue Deploying Forge App: async_hooks Module Not Found

Hello everyone,

After investigating the issue, I can confirm that the root cause aligns with what @ibuchanan mentioned: importing backend packages (such as @forge/resolver, @forge/api, @forge/storage, @forge/events, etc.) within UI modules.

The error occurs because the frontend bundling process cannot resolve backend node modules like async_hooks.

To resolve this, please ensure that any direct or transitive dependencies on backend packages are removed from your UI code.

Hope that helps, thank you!

3 Likes