GithubHelp home page GithubHelp logo

Unable to run tailor examples about tailor HOT 7 CLOSED

zalando avatar zalando commented on May 17, 2024
Unable to run tailor examples

from tailor.

Comments (7)

dazld avatar dazld commented on May 17, 2024 1

the examples are really bare bones, this tripped me up too, which means we should improve them.

the template not found error is because you are looking at /, and there is no redirect or concept of a default fragment route on the example.

try adding index, eg http://localhost:8080/index and hopefully you should see something.

does that help?

from tailor.

addityasingh avatar addityasingh commented on May 17, 2024

@dazld I had the same issue yesterday. I was trying to debug Tailor yesterday by running the examples, by using node --inspect --debug-brk index.js. But the debugger never hit the request-handler file while requesting the tailor url http://localhost:8080/index, but the fragment server at http://localhost:8081 was returning the right response. It's good that @naragon created this issue

from tailor.

naragon avatar naragon commented on May 17, 2024

Yep, this - http://localhost:8080/index - worked. I should have read the instructions more carefully. Thank you much.

from tailor.

dazld avatar dazld commented on May 17, 2024

@addityasingh could you open a new issue for this, with some repro steps?

@naragon no problem! glad to help :)

from tailor.

vigneshshanmugam avatar vigneshshanmugam commented on May 17, 2024

@addityasingh you should run node --inspect examples/* and navigate to localhost:8080/index..

Running node --inspectindex.js` wont hit anything because its the tailor lib file.. We need to create tailor instance and create a server to render things. This is what exactly done in examples folder

from tailor.

addityasingh avatar addityasingh commented on May 17, 2024

@vigneshshanmugam But I am running this command inside /tailor/examples/basic-css-and-js folder. In that case index.js points to index file of the basic-css-and-js and I think node --inspect --debug-brk index.js should work

from tailor.

vigneshshanmugam avatar vigneshshanmugam commented on May 17, 2024

@addityasingh Dont think you need --debug-brk flag though for >6.. I just tried and it works for me

from tailor.

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.