Coder Social home page Coder Social logo

Comments (6)

pilsy avatar pilsy commented on July 30, 2024

I need more info, are your bower components setup? is all the node modules installed without error? what was the url????

from angular-seed.

leostera avatar leostera commented on July 30, 2024

Hey @rinatio that's because the moment you tried to access that specific url the webserver tried to read a folder and stream it over, which of course breaks everything.

A fix would be something like this:

var dir = fs.statSync(pathToDir);
if(dir.isDirectory()) {
  // forget it, we're not streaming a folder
  next();
}

Ideally there'd be a "url rewrite" so you can just access the test runner on :9090 without needing the rest of the url. A fix for that would be something like:

if( req.xhr || /base/.test(url) ) {  // ajax or url explicitly points to app
  pipe() // pipe the file over
} else {
  pipe() // pipe the test runner
}

After that you'd only go to localhost:9090 and it'd be resolved for you. Conditions for that if-clause definitely need to be adjusted but it gives you an idea.

from angular-seed.

rinatio avatar rinatio commented on July 30, 2024

Yep, it was localhost:9090 instead of localhost:9090/test/e2e/runner.html. The second one is not giving an error. Please close if it isn't an issue

from angular-seed.

leostera avatar leostera commented on July 30, 2024

It is. I cannot fix it but maybe you can submit a pull request with the guidelines I posted over :) ?

from angular-seed.

deleteman avatar deleteman commented on July 30, 2024

I've submitted a PR for this, would that fix this "issue"? #41

from angular-seed.

durango avatar durango commented on July 30, 2024

Closing ticket, this should be fixed by now... please re-open if it's not :)

from angular-seed.

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.