mrseanryan / tslint-folders

:file_folder: Use tslint to check for invalid imports between packages and folders in your TypeScript project. Automatic validation and documentation of package architecture.
MIT License
9 stars 1 forks source link

[build] Fix handlebars warnings on yarn build #34

Open mrseanryan opened 3 years ago

mrseanryan commented 3 years ago
yarn build
Handlebars: Access has been denied to resolve the property "hasComment" 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
Handlebars: Access has been denied to resolve the property "hasGetterOrSetter" 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 detail

...
...
PFight commented 1 year ago

From version 4.6.0 on, Handlebars forbids accessing prototype properties and methods of the context object by default.

You should pass runtime property when run handlebars, or do something like:

npm i -D handlebars@4.5.0

Note, that this warning can cause great problems in result.