Hi, I'm not sure if this is the right place to as...
# webassembly
w
Hi, I'm not sure if this is the right place to ask, i'm getting this error when my url looked like this `http://domain.com/sub1/sub2`:
Copy code
GET <http://localhost:8080/review/composeApp.wasm> 404 (Not Found)

Failed to execute 'compile' on 'WebAssembly': HTTP status code is not ok
TypeError: Failed to execute 'compile' on 'WebAssembly': HTTP status code is not ok
if i were to open a url like
<http://localhost:8080/auth/login>
i'll get an error, as far as i know,
const wasmFilePath = './composeApp.wasm';
means it's trying to load
<http://localhost:8080/auth/composeApp.wasm>
instead of
<http://localhost:8080/composeApp.wasm>
.. it's relative to the current url. if i were to open a url like
<http://localhost:8080/login>
then it's ok.. source from #compose-web