mrrobotov
mrrobotov
CDCloudflare Developers
Created by mrrobotov on 9/1/2024 in #workers-help
"Unexpected token 'export'" when using a primitive module from Cloudflare online worker editor
Tried, new worker creates with ES module based boilerplate be default with no error like mine.
8 replies
CDCloudflare Developers
Created by mrrobotov on 9/1/2024 in #workers-help
"Unexpected token 'export'" when using a primitive module from Cloudflare online worker editor
I've tried to rename existing default worker.js file extension to mjs, but each time I open web editor it is being overwritten to the current version.
8 replies
CDCloudflare Developers
Created by mrrobotov on 9/1/2024 in #workers-help
"Unexpected token 'export'" when using a primitive module from Cloudflare online worker editor
Thanks, but tried already with no luck. It seems that ES modules support somehow not activated in the Cloudflare Workers wed editor.
8 replies