I see you’re trying to upload a Worker using the new modules system we released with Durable Objects. For now, this is only available to users in the beta, which is why you are receiving a “not entitled” error.
In the meantime, we recommend using wrangler to upload Workers.
I do like APIs and use a lot await import, that’s why I sought this upload method, but didn’t know it was in beta. Thanks for the info !
I just registered for the beta through :
–
With wrangler, I think there is a fix to use await import while having everything packed in one file. It’s tricky (Strings read as Blob and converted to JS modules) but could work.