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

Browser console error "__webpack_require__ is not defined" on fresh clone. #851

Open
dominikj111 opened this issue Mar 27, 2021 · 4 comments
Labels
bug deps_hugo hugo dependency compatability issues

Comments

@dominikj111
Copy link

Is this a BUG REPORT or FEATURE REQUEST?:
bug

What happened:
The error appeared in the browser console (Firefox 87.0, Chrome 89.0.4389.90) multiple times.

What you expected to happen:
No error as on the example site running on https://about.txtdirect.org/

How to reproduce it (as minimally and precisely as possible):
Clone repository, go to the exampleSite and do hugo server -D or
do hugo -D instead and provide the result by some local server.

Environment:

  • Syna Theme version: master, v0.17
  • Hugo version: hugo v0.82.0+extended darwin/amd64 BuildDate=unknown
@stp-ip
Copy link
Member

stp-ip commented Mar 28, 2021

Check with hugo v0.76.5 for now.

@stp-ip stp-ip added bug deps_hugo hugo dependency compatability issues labels Mar 28, 2021
@dominikj111
Copy link
Author

It is struggling to downgrade at the moment, so I think I'll just ignore the issue for now.

@jonathanlwalters
Copy link

Rolled hugo back to v0.76.5 fixed my "webpack_require is not defined"
Thank you!

@juztin
Copy link

juztin commented May 30, 2021

Also running into this using both the theme, via sub-module, as well as the starter project.
syna v0.17.4
hugo v0.83.1+extended linux/amd64

TypeError: can't redefine non-configurable property "globalPrivacyControl"
Uncaught ReferenceError: __webpack_require__ is not defined
    <anonymous> webpack:///./assets/js/contact.js?:1
    js http://localhost:1414/scripts/syna-contact.min.25978065e5e56c1e570de0c4989574b57b3391494d02e678b275ba5b27931224.js:1
    a http://localhost:1414/scripts/syna-contact.min.25978065e5e56c1e570de0c4989574b57b3391494d02e678b275ba5b27931224.js:1
    <anonymous> http://localhost:1414/scripts/syna-contact.min.25978065e5e56c1e570de0c4989574b57b3391494d02e678b275ba5b27931224.js:1
    <anonymous> http://localhost:1414/scripts/syna-contact.min.25978065e5e56c1e570de0c4989574b57b3391494d02e678b275ba5b27931224.js:1
...

I noticed this prevents particle-js from running on the landing page image, along with the "back to top" button and hamburger menu.

subins2000 added a commit to varnamproject/varnamproject.github.io that referenced this issue Sep 3, 2021
abrain added a commit to alarmdisplay/website that referenced this issue Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug deps_hugo hugo dependency compatability issues
Development

No branches or pull requests

4 participants