Help with error in client browser: Uncaught ReferenceError: require is not defined #1078
Unanswered
nebbishOne
asked this question in
Q&A
Replies: 1 comment
-
|
You'll want embed.min.js or embed.dev.js; embed.js is the original source file before any bundlers, etc have run. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I set up Isso today on my VPS and it seems to run just fine. I can request the embed.js file directly in a browser, and that comes back. I can acess and log in to the Admin page just fine.
But I added the script tag to my Hugo web site for the blog post layout, like this:
Here's my config file on the server:
When I load any blog post though, the section it should appear within is blank. In the client browser's console, I see:
Uncaught ReferenceError: require is not definedI can View Source and review the script and I do see in there that the first line has, "var domready = require("app/lib/ready");"
I don't know much about this but I didn't think "require()" works client side?
In any case, help please and thanks for any ideas.
Beta Was this translation helpful? Give feedback.
All reactions