Hi there, i'm trying out compose web (wasm) with <...
# compose-web
w
Hi there, i'm trying out compose web (wasm) with decompose library for navigation.. I'm getting this error when i navigate to
localhost:8080/review/1234
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
looks like in
uninstantiated.mjs
the path is set relatively to current directory? I found this
const wasmFilePath = './composeApp.wasm';
in the file it is working as expected when it is something like
<http://localhost:8080/login>
Am I'm doing something wrong? or this is the expected behavior?
p
I think is a known issue, ask in #decompose
👀 1
w
asked in this thread but i think is
.mjs
path issue, because of this
const wasmFilePath = './composeApp.wasm';
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
should I try #webassembly ?
p
I see, yes you can try there. Usually when asking the same question in another channel is better just post a link to the original question
🙆‍♂️ 1
t
Did you report an issue about this?