-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
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
Handlebars: Access has been denied to resolve the property "statements" because it is not an "own property" of its parent. #1646
Comments
See #1636 please |
The basic answer is that istanbul-reports and many others are using Handlebars with custom classes as input. Which was not intended, documented or tested, but it still worked. Up to 4.5.3. It was changed in 4.6.0 due to recurring security problems. Now prototype access is forbidden by default and opt-in via runtime options. In your case, I believe you should ask the angular-people to bump to the a newer version of istanbul-reports, nyc or something in that direction. It had already been fixed. |
I have experienced this issue today as well. If upgrading you dependencies does not achieve the desired effect, try deleting and recreating your |
just try |
I liked this approach, but it didn't resolve my problem. After tracing the root package, I updated it and the errors went away:
|
@sketchy-ota where did you install the karma-coverage-istanbul-reporter? inside istanbul-reports module? |
@ashwingattani, after calling So instead of trying to update just the dependency, I updated the whole library with '@latest', hence: |
@sketchy-ota, thanks for the update. for me, npm deep clean and |
@sketchy-ota you saved my day buddy. this is working fine ( m using Linux 16.4) |
I'm running my test case in locally with following versions
@angular-devkit/architect 0.803.23
@angular-devkit/core 8.3.23
@angular-devkit/schematics 8.3.23
@schematics/angular 8.3.23
@schematics/update 0.803.23
rxjs 6.4.0
Node: 12.14.1
handlers with the 4.5.3 versions i was getting my repost
and recently i have verified my components and i have done npm install after this i have run the coverage then is was throwing error like:
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 "branches" 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 "functions" 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 "lines" 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
and report was generating but it looks like:
and the latest version is 4.7.2
@wycats
@ kpdecker
The text was updated successfully, but these errors were encountered: