Skip to content

Live Reload: Broken/Missing JS script? #306

@MarioLiebisch

Description

@MarioLiebisch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions