/Users/yudhiesh/node_modules/use-neo4j/dist/index.js Module not found: Can't resolve 'neo4j-driver' in '/Users/yudhiesh/node_modules/use-neo4j/dist'
Closed this issue · 1 comments
yudhiesh commented
I am facing this error when importing the package:
/Users/yudhiesh/node_modules/use-neo4j/dist/index.js Module not found: Can't resolve 'neo4j-driver' in '/Users/yudhiesh/node_modules/use-neo4j/dist'
Code:
import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";
import { Neo4jProvider, createDriver } from "use-neo4j";
ReactDOM.render(
<React.StrictMode>
<Neo4jProvider>
<App />
</Neo4jProvider>
</React.StrictMode>,
document.getElementById("root")
);
I did run npm i --save use-neo4j
and the package was installed successfully installed.
Dependencies:
{
"name": "Dashboard",
"version": "0.1.0",
"dependencies": {
"bootstrap": "^4.6.0",
"formik": "^2.2.6",
"mapbox-gl": "^1.11.1",
"react": "^16.13.1",
"react-bootstrap": "^1.5.1",
"react-dom": "^16.13.1",
"react-icons": "^4.2.0",
"react-router-dom": "^5.2.0",
"react-scripts": "^3.4.3",
"use-neo4j": "^0.3.3"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
adam-cowley commented
Sorry about this, I've just spotted that neo4j-driver is listed as a devDependency.
For now you can run npm i --save neo4j-driver
or I will release a fixed version later on today