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

Live Reload: Broken/Missing JS script? #306

Open
MarioLiebisch opened this issue Feb 19, 2024 · 2 comments
Open

Live Reload: Broken/Missing JS script? #306

MarioLiebisch opened this issue Feb 19, 2024 · 2 comments

Comments

@MarioLiebisch
Copy link

MarioLiebisch commented Feb 19, 2024

I just initialized a --bare project and it's everything working fine, except it seems as if /spa/ejected/live-reload.js doesn't exist (nor is it generated or outputted). Instead there's a HTTP 302 redirect back to /:

Request:

GET /spa/ejected/live-reload.js HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: de,en;q=0.9,en-US;q=0.8
Cache-Control: no-cache
Connection: keep-alive
Cookie: session=<Random GUID>
DNT: 1
Host: localhost:3000
Pragma: no-cache
Referer: http://localhost:3000/
Sec-Fetch-Dest: script
Sec-Fetch-Mode: no-cors
Sec-Fetch-Site: same-origin
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
sec-ch-ua: "Not A(Brand";v="99", "Google Chrome";v="121", "Chromium";v="121"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"

Reply:

HTTP/1.1 302 Found
Content-Type: text/html; charset=utf-8
Location: http://localhost:3000//
Date: Mon, 19 Feb 2024 10:43:21 GMT
Content-Length: 46

Also note the extra / at the end!

Plenti runs inside a Docker image (golang:latest) installing Plenti with go install as ‌@latest.

@EKliptus
Copy link

Same issue for me...
I am on windows wsl

jimafisk added a commit that referenced this issue Apr 22, 2024
@jimafisk
Copy link
Member

Hi @MarioLiebisch and @EKliptus,

Sorry for the delay responding! There were a couple of issues breaking live-reload:

These issues should be fixed now! Can you try the new release (v0.6.37) and let me know if it's working better for you now? I also just want to note the current feature is a simple browser refresh and not hot module reloading, hope that's what you're looking for. Thanks for the bug report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants