Axios fails for snapshot error on deploy forge app in Custom UI

Error: Error thrown in the snapshot context.
App code snapshot error: Snapshot error occurred: Error: util.TextEncoder is not a constructor

Receiving above error while deploying with ‘axios’ in the resolver.

2 Likes