Error: There was an error invoking the function - window is not defined

These issues are related: Issue Deploying Forge App: async_hooks Module Not Found - #14 by JingYuan

Also double-check any helper or utility imports too. Forge bundler is flawed. eg if you’re importing a helper/utility into your resolver file, and somewhere buried deep is a frontend Forge package that is not being called, it’ll still throw this error.

1 Like