Published
- 1 min read
handlebars: Access has been denied to resolve the property
The solution for this is noted below
handlebars: Access has been denied to resolve the property
Solution
//Add the following run time options to your code
app.engine(
'handlebars',
exphbs({
defaultLayout: 'main',
runtimeOptions: {
allowProtoPropertiesByDefault: true,
allowProtoMethodsByDefault: true
}
})
)
Try other methods by searching on the site. That is if this doesn’t work