Not all js code being created in output #3856
-
Hi, I have an .md template that contains a bunch of javascript code. I get an error in Inspect > Console that says: Uncaught ReferenceError: generatePassword is not defined When I look at the source of the output page, all the code below eleventy --serve does not report any errors when building this page.... This exact same code does run fine in another SSG so I do not think it is the code.... Any help is much appreciated.... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Are you using the |
Beta Was this translation helpful? Give feedback.
Are you using the
eleventy-base-blog
project? If so, look through youreleventy.config.js
file and comment out thebundleHtmlContentFromSelector
line here https://github.com/11ty/eleventy-base-blog/blob/977d950fa73bd609338393b3cb29c21e39e63dbe/eleventy.config.js#L43-L49