# Errors in code when using Neovis.js with angular2+ template

**URL:** <https://community.neo4j.com/t/errors-in-code-when-using-neovis-js-with-angular2-template/2532>\
**Category:** Neo4j Visualization Library (NVL)\
**Tags:** performance, cypher, operations\
**Created:** [October 19, 2018, 7:59am UTC](https://community.neo4j.com/t/errors-in-code-when-using-neovis-js-with-angular2-template/2532 "2018-10-19T07:59:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![sucheta](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/sucheta/32/4444_2.png) [@sucheta](https://community.neo4j.com/u/sucheta)\
**Post date:** [October 21, 2018, 11:22am UTC](https://community.neo4j.com/t/errors-in-code-when-using-neovis-js-with-angular2-template/2532/3 "2018-10-21T11:22:13Z")

</div>

I didn't get you ?

Can you also please look into -

> [@Error - Cannot read property 'constructor' of null while using Neovis.js](https://community.neo4j.com/t/error-cannot-read-property-constructor-of-null-while-using-neovis-js/2456/2):
>
> I'm not certain, but it looks like neovis.js may not be properly handling nulls returned in the Cypher query as a result of using OPTIONAL MATCH. Could you please create a Github issue here and we will investigate further and fix: [Issues · neo4j-contrib/neovis.js · GitHub](https://github.com/neo4j-contrib/neovis.js/issues)

and

> [@The graph display on using Neovis.js can be more presentable](https://community.neo4j.com/t/the-graph-display-on-using-neovis-js-is-not-presentable/2457/6):
>
> Default styling is pulled in from here: [https://github.com/neo4j-contrib/neovis.js/blob/master/src/defaults.js](https://github.com/neo4j-contrib/neovis.js/blob/master/src/defaults.js) You should be able to update styling in that visjs object to overwrite the defaults used by neovis.js.

Thank you for your consideration

---

_[View the full topic](https://community.neo4j.com/t/errors-in-code-when-using-neovis-js-with-angular2-template/2532)._
