# webassembly

John O'Reilly

10/02/2023, 7:58 PM
I previously had/needed following in my gh workflow (as part of deployment to gh-pages).
Copy code
- name: Copy "uninstantiated" file over (workaround for now)
  run: cp compose-web/build/compileSync/wasm/main/productionExecutable/kotlin/Chip8.uninstantiated.mjs compose-web/build/dist/wasm/productionExecutable
now, after above updates I'm now getting...were there changes/fixes done around this?
Copy code
cp: cannot stat 'compose-web/build/compileSync/wasm/main/productionExecutable/kotlin/Chip8.uninstantiated.mjs': No such file or directory


10/02/2023, 8:55 PM
Didn't check it (mobile), but what about

John O'Reilly

10/03/2023, 5:48 AM
Yeah, had checked there as well

Oleksandr Karpovich [JB]

10/03/2023, 5:32 PM
Jfyi: .uninstantiated.mjs will not work in some cases (for example with date-time lib, which adds a dependency on joda-js). And eventually we'll refactor all examples to get rid of using it directly. Here is an alternative (make webpack use our custom loader) It means that index.html doesn't use uninstantiated.mjs too

John O'Reilly

10/03/2023, 5:39 PM
Thanks, I'll take a look at date time dependencies etc....this is a project that was working before but was just updated to the 1.9.20-Beta2 related wasm depdencies
I pulled over changes made recently to kotlin-wasm-examples and working now (deploying to gh pages -
.wasm 2
🚀 3
I still need to make this change though to allow this....probably some basic config I'm missing
Copy code
//return resource("chip-8/${gameName}.ch8").readBytes()
// need to figure out way to manage web resource paths when
// deployed but leaving like this for now so can be run locally
return resource("${gameName}.ch8").readBytes()
ok, looks like this is still an open issue