Cannot SST deploy Cloudflare Worker due to 'Cannot use import statement outside a module'
Hi, I'm trying to move the whole infrastructure deploy from OpenTofu to SST. I use Cloudflare for everything and the only issue remains with workers.
This is a configuration for the worker:
When deployed through GitHub Actions, it fails on
Cannot use import statement outside a module
. The worker is possible to deploy through Wrangler thus it seems to be an issue with SST or the configuration.
What could be done to resolve this issue?0 Replies