koudelka
12/26/2022, 12:26 AMItalyPaleAle
12/27/2022, 12:13 AMItalyPaleAle
12/27/2022, 12:25 AMzegevlier
12/27/2022, 2:18 PMItalyPaleAle
12/27/2022, 3:33 PMbrett
12/27/2022, 3:41 PMItalyPaleAle
12/27/2022, 3:43 PMbrett
12/27/2022, 3:47 PMItalyPaleAle
12/27/2022, 3:50 PMDanTheGoodman
12/27/2022, 10:52 PMHardAtWork
12/28/2022, 7:32 AMkoudelka
12/28/2022, 11:57 AMDanTheGoodman
12/28/2022, 12:00 PMHardAtWork
12/28/2022, 12:19 PMtranzium
12/28/2022, 9:11 PMBlizzy
12/29/2022, 12:18 AMJames
12/29/2022, 12:25 AMBlizzy
12/29/2022, 12:28 AMJames
12/29/2022, 12:29 AMBlizzy
12/29/2022, 1:26 AMError: missing field `type`
and when I try the default type="webpack"
, I get a different error:
👀 ./src/chat.html 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> <!DOCTYPE html>
| <!--
| THIS IS NOT THE INTERESTING FILE
@ ./src/chat.mjs 62:0-31 104:28-32
Any insight would be helpful. TIABlizzy
12/29/2022, 1:31 AMtype = "javascript"
, I get...
Uncaught SyntaxError: Cannot use import statement outside a module
at worker.js:62
Is there like an ecmascript
type or a module
type?James
12/29/2022, 1:33 AMBlizzy
12/29/2022, 1:33 AMBlizzy
12/29/2022, 1:36 AMsks
12/29/2022, 10:13 AMsks
12/29/2022, 11:14 AMdavidfm
12/29/2022, 11:30 AMalarm()
handler to be stored in the Cloudflare cache. I'm already using fetch()
with cache option as described in https://developers.cloudflare.com/workers/examples/cache-using-fetch/. This is working fine when done from within a regular worker, but the cache status is always MISS
when the requests are done from within the alarm()
handler.
Does fetch
with cache options work normally when invoked from alarm
? or is there any limitation o `fetch`ing with cache from DOs ? (I don't see anything mentioned in docs...)
Thanks in advance, any guidance is appreciated!brett
12/29/2022, 2:51 PMbrett
12/29/2022, 2:51 PMsks
12/29/2022, 2:52 PM