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

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

Open
gavytron opened this issue Sep 14, 2023 · 0 comments
Open

Comments

@gavytron
Copy link

gavytron commented Sep 14, 2023

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.

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

1 participant