You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just updated handlebars to version 4.7.1. I get several errors in the console which look like:
Handlebars: Access has been denied to resolve the property "format" because it is not an "own property" of its parent.
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details
This comes from recent changes done in v. 4.7. I'd like to change my webpack loader config to use the documented runtime options (allowProtoPropertiesByDefault and allowProtoMethodsByDefault). I've tried:
module: {rules: [// few other loaders...{test: /\.hbs$/,loader: 'handlebars-loader',query: {precompileOptions: {allowProtoPropertiesByDefault: true,allowProtoMethodsByDefault: true},helperDirs: [path.join(__dirname,'src/view/helpers')]}}]}
But I still get the same problem. How to set these runtime options?
The text was updated successfully, but these errors were encountered:
Hello,
I've just updated handlebars to version 4.7.1. I get several errors in the console which look like:
This comes from recent changes done in v. 4.7. I'd like to change my webpack loader config to use the documented runtime options (
allowProtoPropertiesByDefault
andallowProtoMethodsByDefault
). I've tried:But I still get the same problem. How to set these runtime options?
The text was updated successfully, but these errors were encountered: