Git Product home page Git Product logo

remix-jokes's People

Contributors

chaance avatar jacob-ebey avatar kentcdodds avatar michaeldeboey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

remix-jokes's Issues

2 tutorial bugs: (RSS doesn't work) + (Fly's .dockerignore doesn't work for Prisma)

Disclaimer: I'm still genuinely excited about Remix, but in stepping through the remix-jokes tutorial I ran into a couple acute issues that left me scratching my head. I feel pretty confident others must have encountered them too. Hoping that posting here might help shed some light.

Issue 1: Resource Routes / RSS feature:
The tutorial's implementation differs from this repo's, and AFAICT neither of them work.
https://remix-jokes.lol/jokes.rss (like my follow-along-at-home version) returns a 200 response but there are no joke <item>s, just the feed metadata ending with </ttl>. I stopped trying to debug it when I realized it wasn't just me.

Issue 2: Deployment: Prisma vs Fly.io's default .dockerignore:
The .dockerignore file noted in the tutorial and present in this repo, auto-generated by fly launch, consists of just one path to ignore: node_modules. That's pretty standard and seems reasonable. BUT. Prisma is weird, in that it relies on generating files in node_modules/prisma -- which files are not present following npm install! (This gives me the heebie-jeebies, even if the Prisma APIs are really nice.)
So in following the tutorial step-by-step, the fly deploy step fails with errors like:

Error: Cannot find module '/root/.npm/_npx/524/lib/node_modules/prisma/scripts/preinstall-entry.js'

The only way I could mitigate this problem was to edit the .dockerignore file, adding an exclusion to NOT ignore node_modules/prisma in particular:

!node_modules/prisma

... which fixed the problem.

But, how did the setup in this repo and/or noted in the tutorial's prose ever work without making this change?
Thanks in advance for any responses!

Login works with Chrome but not Safari on Mac OS

When I run the app on Mac OS (Monterey 12.0.1), I can login successfully using Chrome (version 96.0.4664.93). However, when I try to login using Safari (version 15.1), I get redirected back to /jokes.

I haven't had time to do any debugging yet, but I did notice a difference in the console when using Chrome vs. Safari.

With Chrome, I see:

POST /login?_data=routes%2Flogin 204 - - 79.879 ms
GET /jokes?_data=root 200 - - 1.112 ms
GET /jokes?_data=routes%2Fjokes%2Findex 200 - - 6.126 ms
GET /jokes?_data=routes%2Fjokes 200 - - 12.336 ms

With Safari, I see:

POST /login?_data=routes%2Flogin 204 - - 75.138 ms
GET /jokes?_data=root 200 - - 6.954 ms
GET /jokes?_data=routes%2Fjokes 200 - - 0.761 ms
GET /jokes?_data=routes%2Fjokes%2Findex 404 - - 3.253 ms

For some reason, Safari receives a 404 for the request to GET /jokes?_data=routes%2Fjokes%2Findex. Also, Safari requests that URL after /jokes?_data=routes%2Fjokes, whereas Chrome requests it before.

Not sure if this is a Remix problem or a problem with the Jokes app or an error on my part, but I thought it was worth reporting.

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.