Uncaught ReferenceError: Handlebars is not defined #1990
Replies: 3 comments 6 replies
-
Can you provide a reduced test-case that reproduces the error? Otherwise it's hard for me to help you. |
Beta Was this translation helpful? Give feedback.
-
Good day, I have attempted to implement a test case to share more data but I was unsuccessful as our application broke because of node version. Looked into the code again I found the source of the error "Uncaught ReferenceError: Handlebars is not defined" is originating from a file that looks like it is being generated at runtime templates.js this location is attempting to run a function
This above mentioned function seems have a unique variation for each template we have in our code base, any modification to this file is removed after saving and our local build runs. More details about our application: |
Beta Was this translation helpful? Give feedback.
-
Also we are using Grunt versions: grunt-cli v1.4.3, grunt v1.5.3. I will include our configuration in our Grunt file for Handlebars.
|
Beta Was this translation helpful? Give feedback.
-
Good afternoon :)
I wanted to reach out as I could not find any solutions through trusty google. At my company we use Handlebars templates to render content at runtime, we are attempting to upgrade our version from 1.3.0 to 4.7.7 but we are running into the error of
Uncaught ReferenceError: Handlebars is not defined
We are storing the min file locally https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.7.7/handlebars.min.js and importing handlebars into relevant files using
Handlebars = require('handlebars')
.After the upgrade it appears that our templates are loading correctly but I need to identify the source of this error so we can begin regression and confirm there is no impact.
Any help is appreciated on this issue and thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions