Giter VIP home page Giter VIP logo

Comments (6)

chinedufn avatar chinedufn commented on May 15, 2024

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

let mut file = File::open(filename).expect("File not found");
let mut contents = String::new();
file.read_to_string(&mut contents).unwrap();
..

Does ./examples/isomorphic/client/bundle.js exist in your file system?

from percy.

eswr avatar eswr commented on May 15, 2024

@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.

from percy.

mikeyobrien avatar mikeyobrien commented on May 15, 2024

@eswr
Occurs in both firefox and chrome.

@chinedufn
There is no bundle.js file in ./examples/isomorphic/client/bundle.js.

from percy.

chinedufn avatar chinedufn commented on May 15, 2024

Hmm, mind pasting the output from when you run start.sh ? I’m thinking there might’ve been a webpack build error or something.

from percy.

mikeyobrien avatar mikeyobrien commented on May 15, 2024

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

from percy.

chinedufn avatar chinedufn commented on May 15, 2024

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!

from percy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.