Skip to content

Application.js error 404 javascript not working because of fingerprinting #265

Description

@gavytron

The site works locally but JavaScript does not work not when pushed on a static site: (no animations, console errors).

After

there is:

<script src=[/scripts/application.js](https://www.lifeslittlelab.vip/scripts/application.js) integrity defer></script>

In other words, there is a reference to application.js without fingerprinting
the application.js file does not exist in public/scripts because there is only the file with fingerprinting

the browser console shows two error lines:

Failed to load resource: the server responded with a status of 404 ()

www.lifeslittlelab.vip/:1 Refused to execute script from 'https://www.lifeslittlelab.vip/scripts/application.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

I am deploying on render.com

render.com runs Hugo automatically when it sees a new commit on github
but even when I run Hugo locally, inside public, I only see the application.css and application.js don't exist as files because there are their versions with fingerprinting. funny thing is that application.css is correctly referenced with fingerprinting but application.js is not referenced with fingerprinting.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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