Handlebars: Access has been denied to resolve the property “from” because it is not an “own property” of its parent

后端 未结 11 1813
我在风中等你
我在风中等你 2020-12-05 13:27

I am using a Nodejs backend with server-side rendering using handlebars. After reading a doc array of objects from handlebars, which contains key \"content\" an

11条回答
  •  自闭症患者
    2020-12-05 13:56

    I am using Angular version 8.0.2 and Node version 10.16.3 While running test cases was facing below issue:

    Handlebars: Access has been denied to resolve the property "statements" because it is not an "own property" of its parent.

    Handlebars: Access has been denied to resolve the property "functions" because it is not an "own property" of its parent.

    While debugging the issue further found that in package.json, "karma-coverage-istanbul-reporter": "2.0.1" is there but "istanbul-lib-report" was missing so did following steps:

    1. In package.json file, under dependencies included "istanbul-lib-report": "3.0.0"
    2. Execute npm install

    And it solved my issue :) (Hope this helps someone)

提交回复
热议问题