-
Notifications
You must be signed in to change notification settings - Fork 326
Description
Hi. I'm trying to use NEOVIS_ADVANCED_CONFIG and have searched all over this forum to try and decipher what i'm doing wrong
I first got neovis by doing
<script type="text/javascript" src="https://cdn.neo4jlabs.com/neovis.js/v1.2.1/neovis.js"></script>
This allows me to connect to the database and outputs the graph......But i want to choose my relationship colors, so i realised i need a newer version with NEOVIS_ADVANCED_CONFIG
I cloned the latest version repo and wrote this script
<script type="text/javascript" src="./static/js/neovis.js/dist/neovis.js"></script>
followed by
<script type="module"> import NeoVis, {NEOVIS_ADVANCED_CONFIG} from "./static/js/neovis.js/dist/neovis.js"; </script>
but now i'm getting two errors ...................
Uncaught` SyntaxError: The requested module './static/js/neovis.js/dist/neovis.js' does not provide an export named 'NEOVIS_ADVANCED_CONFIG' (at (index):59:21)
and when i try to draw the graph, i get
neovis.ts:294 Neo4jError: The client is unauthorized due to authentication failure.
I also get this authentication error if i cdn
<script src="https://unpkg.com/[email protected]"></script>
In MY draw() function I have the correct password and username, so i'm unsure why i'm getting an authentication error.
if i use <script src="https://unpkg.com/[email protected]/dist/neovis-without-dependencies.js"></script>
i get
(index):93 Uncaught ReferenceError: NeoVis is not defined
at draw ((index):93:19)
at HTMLButtonElement.onclick ((index):164:203)
ANY idea how to get around these?