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

Loading failed for the <script> with source “http://localhost:1313/javascripts/modernizr.js”. #4884

Closed
BenBergman opened this issue Jun 27, 2018 · 4 comments
Labels

Comments

@BenBergman
Copy link

BenBergman commented Jun 27, 2018

Trying to run my site with hugo 0.42.1 (after using the env var workaround from #4851) results in a broken theme. My site works fine if I downgrade hugo to 0.40 (I happened to have this available in homebrew at the time).

When loading my site with the env var workaround, I get the following message in the browser's JS console:

Loading failed for the <script> with source “http://localhost:1313/javascripts/modernizr.js”.

public/javascripts/modernizr.js exists when I run hugo server, but wget also fails to retrieve the file so I'm not sure why it isn't being served. Other files in that directory work fine.

For reference, the theme I'm using is hugo-material-docs and their example project (with minor tweaks) works fine in 0.42.1

@bep
Copy link
Member

bep commented Jun 28, 2018

Please use https://discourse.gohugo.io/ for questions/troubleshooting. Also see Hugo Documentation.

@bep bep closed this as completed Jun 28, 2018
@BenBergman
Copy link
Author

BenBergman commented Jul 11, 2018

@bep : I started posting in discourse but you closed my thread there too pointing me to create a ticket. I can't comment on that thread, so I'll post my update here instead:

This is an inherited project and the previous dev was using a much older version of hugo. I've been trying to modernize it. The version's I've had access to on my machine without trying to custom compile from source are 0.40, 0.42.1, and 0.43.

I did get a little bit further in my diagnostics though. The issue presents itself when both my English and French sites have baseURLs set. I need different baseURLs for each site as there is a different domain used for each language.

@BenBergman
Copy link
Author

I see someone else just opened a ticket about multilingual sites not pulling contents from themes (#4929) so this ticket can stay close and I will follow that thread instead.

@github-actions
Copy link

github-actions bot commented Mar 1, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants