Following the
official tutorial for generating artifacts doesn’t work for me. I get this in the console when I copy the productionExecutable folder and run index.html:
• index.html: 8 Access to XMLHttpRequest at ‘
file://Users/sam/Developer/productionExecutable/8433c6b_wasm’ from origin ‘null’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome, https, chrome-untrusted.
• skiko.mjs
8 failed to asynchronously prepare wasm: [object ProgressEvent]
• skiko.mjs
8 Aborted( [object ProgressEvent])
• 8433c6b... wasm: 1: Failed to load resource: net:: ERR_FAILED
• skiko.mj.s
8 Uncaught (in promise)
◦ RuntimeError: Aborted ([object ProgressEvent)). Build with -sASSERTIONS for more info.
▪︎ at V (skiko.mis
85457)
▪︎ at skiko.mis
86918