Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fresh install returns 404 error for run dev #134

Closed
gregdingle opened this issue Dec 18, 2023 · 14 comments
Closed

Fresh install returns 404 error for run dev #134

gregdingle opened this issue Dec 18, 2023 · 14 comments

Comments

@gregdingle
Copy link

Describe the bug
After doing a fresh install with edge functions, npm run dev starts a server on http://localhost:8888 but that address returns 404.

To Reproduce
See screenshots below

Expected behavior
Expected to see remix index page.

Screenshots
CleanShot 2023-12-18 at 00 21 10

CleanShot 2023-12-18 at 00 22 50

CleanShot 2023-12-18 at 00 25 34

@gregdingle gregdingle changed the title Fresh install of edge functions returns 404 error Fresh install returns 404 error for run dev Dec 18, 2023
@anthonyholmes
Copy link

[email protected] works correctly. You might need to downgrade for now

@anthonyholmes
Copy link

Actually, it starts working correctly if you save one of your project files. You might need to refresh the browser too. Definitely started happening after [email protected] though

@yuvrajharod
Copy link

Thanks @anthonyholmes , this really helped a lot! I was facing the same issue and this worked me!

@sangrepura
Copy link

sangrepura commented Jan 22, 2024

Just tried this today as well since I was considering Netlify over Fly.io. Got a 404 on fresh installs of this template and the netlify-cli (v17.15.2). Adding a newline to root.tsx and saving as @anthonyholmes suggested fixed it.
This is not a good first impression for new people coming to your platform @netlify.

@ascorbic
Copy link
Contributor

Thanks for the report on this, and sorry for the delay in addressing it. We're looking into it.

FRA-237

@sangrepura
Copy link

Thanks for looking into this! Some additional behavior I noticed:

  1. Every time the dev server is started with: remix dev --manual -c \"ntl dev --framework=#static\"
    a file needs to be edited and saved while it's running to eliminate the 404
  2. HMR doesn't work (auto reload the page) on the initial edit/save while the 404 is displayed, but it does work on subsequent edits.

@linear linear bot closed this as completed Jan 30, 2024
@ascorbic
Copy link
Contributor

This is updated in the build library. I'll update here when we have a CLI update. It should be later today.

@ascorbic
Copy link
Contributor

ascorbic commented Jan 30, 2024

@sangrepura I think those are all manifestations of the same issue, so this should fix them all

@ascorbic
Copy link
Contributor

Everyone here: if you update netlify-cli to latest (which is now 17.15.5) it should fix this for you. Thanks everyone for your patience on this.

@anthonyholmes
Copy link

I'm still having the issue after upgrading. Any suggestions on how I can help debug this?

@yuvrajharod
Copy link

@ascorbic tried after upgrading, I can confirm, this isn't fixed yet.

Can you please confirm if we need to upgrade anything else?

@ascorbic
Copy link
Contributor

ascorbic commented Feb 5, 2024

Looking into this. Thanks for the reports.

@ascorbic ascorbic reopened this Feb 5, 2024
@th-km
Copy link

th-km commented Feb 20, 2024

I'm experiencing the same issue with netlify-cli: "^17.16.3". I'm also curious to know if there are plans for a vite preset?

@ascorbic
Copy link
Contributor

Fixed in latest version (which uses Vite)

@linear linear bot reopened this Apr 24, 2024
@MarcL MarcL closed this as completed Apr 24, 2024
@linear linear bot added the Next Cycle label May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants