We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
.hbs
The rest of your code looks good, as long as your files have the extension .hbs. Try the following:
Run
npm install @handlebars/allow-prototype-access
add the following to the beginning of of your file.
const Handlebars = require('handlebars') const {allowInsecurePrototypeAccess} = require('@handlebars/allow-prototype-access')
change the line
const hbs = exphbs.create({ defaultLayout: 'main', extname: 'hbs', });
to
const hbs = exphbs.create({ defaultLayout: 'main', extname: 'hbs', handlebars: allowInsecurePrototypeAccess(Handlebars) });
Originally posted by @nknapp in handlebars-lang/handlebars.js#1648 (comment)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The rest of your code looks good, as long as your files have the extension
.hbs
. Try the following:Run
add the following to the beginning of of your file.
change the line
to
Originally posted by @nknapp in handlebars-lang/handlebars.js#1648 (comment)
The text was updated successfully, but these errors were encountered: