Closed mikeyobrien closed 6 years ago
Uh oh - hmm - are you starting the server using start.sh
?
thread 'main' panicked at 'File not found: Os { code: 2, kind: NotFound, message: "No such file or directory" }'
Seems like the bundle.js isn't being found here https://github.com/chinedufn/percy/blob/44d974d325a52b66e022c343eb6226b2644cb607/examples/isomorphic/server/src/server.rs#L81-L84 ..
Does ./examples/isomorphic/client/bundle.js
exist in your file system?
@hmobrienv
Does this problem only occur in chrome? (try to open http://127.0.0.1:7878
in firefox)
if so, add favicon.ico at ./examples/isomorphic/client/favicon.ico
and start it.
FILENAME: ./examples/isomorphic/client/favicon.ico
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Custom { kind: InvalidData, error: StringError("stream did not contain valid UTF-8") }', libcore/result.rs:945:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
@eswr Occurs in both firefox and chrome.
@chinedufn
There is no bundle.js file in ./examples/isomorphic/client/bundle.js
.
Hmm, mind pasting the output from when you run start.sh ? I’m thinking there might’ve been a webpack build error or something.
Sure thing,
warning: unused manifest key: package.private warning: unused manifest key: package.private Finished dev [unoptimized + debuginfo] target(s) in 0.07s ./examples/isomorphic/client/build-wasm.sh: line 6: wasm-bindgen: command not found warning: unused manifest key: package.private warning: unused manifest key: package.private Finished dev [unoptimized + debuginfo] target(s) in 0.07s Running
target/debug/isomorphic-server
Listening on port 7878
wasm-bindgen: command not found
It looks like you're missing one of the dependencies. Sorry! The instructions should have done a better job of explaining how to get yourself set up :(
I've updated the instructions to include the fact that you need to have nightly Rust and wasm-bindgen installed!
https://github.com/chinedufn/percy/tree/master/examples/isomorphic#running-locally
If those steps don't work for you let me know!
Error summary: