Error in driver when using nodejs with neo4j

somiya_0-1660911638842.png

somiya_1-1660911660551.png

When using Node.js with neo4j when .js file is created and local is tries to get data from neo4j using username and password it shows error saying cannot read properly 'driver'.

In this the neo4j Database should be of local database or neo4j aura db?

Hello Somiya,

Try that same thing again after the following change:

var neo4j = require('neo4j-driver').v1
var neo4j = require('neo4j-driver')

If that fails, please share your node version, and driver version.