Closed xgh127 closed 2 months ago
This is not an issue, please give a normal question
This is not an issue, please give a normal question
Sorry,I don't understand! What's the difference?
I don't think this is possible in 1.4, this library was not created to copy neo4j desktop graph but to embed using vis.js, in 2.x because you can config anything in vis you could probably do this
I don't think this is possible in 1.4, this library was not created to copy neo4j desktop graph but to embed using vis.js, in 2.x because you can config anything in vis you could probably do this
OK,I got it. But when i change the version.I encounter a new problem.
Failed to compile
./node_modules/neovis.js/dist/neovis.js 45600:31
Module parse failed: Unexpected token (45600:31)
File was processed with these loaders:
* ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|
| function sB(t, e) {
> if ("object" == typeof e?.properties) return (0, j.isInt)(e.properties[t]) ? eB(e.properties[t]) : e.properties[t];
| throw new Error("Neo4j object is not properly constructed");
| }
,Is this a version problem?
How old is your project 😅 Update babel and update preset-env
And update all you're presets
And update all you're presets Thanks, Followed you instruction,I’ve updated. Now my package.json is like this: `json { "name": "react-neovis-example", "version": "0.1.0", "private": true, "homepage": "./", "scripts": { "start": "set NODE_OPTIONS=--openssl-legacy-provider && react-scripts start", "build": "set NODE_OPTIONS=--openssl-legacy-provider && react-scripts build", "lint": "prettier --write '{,!(node_modules)/}*/.{js,jsx}'", "predeploy": "yarn run build", "deploy": "gh-pages -d build" }, "husky": { "hooks": { "pre-commit": "pretty-quick --staged" } }, "dependencies": { "@ant-design/icons": "^5.3.7", "ant-design": "^1.0.0", "antd": "^5.17.2", "neovis.js": "^2.1.0", "prop-types": "^15.7.2", "react": "^16.13.1", "react-dom": "^16.13.1", "react-resize-aware": "^3.0.1", "react-router-dom": "^6.23.1", "react-scripts": "3.4.3" }, "devDependencies": { "@babel/core": "^7.24.7", "@babel/preset-env": "^7.24.7", "gh-pages": "^2.1.1", "husky": "^3.0.3", "prettier": "^1.18.2", "pretty-quick": "^1.11.1" }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] } }
but it still report error like this
File was processed with these loaders:
./node_modules/neovis.js/dist/neovis.js 41468:31
Module parse failed: Unexpected token (41468:31)
File was processed with these loaders:
if ("object" == typeof e?.properties) return (0, j.isInt)(e.properties[t]) ? eB(e.properties[t]) : e.properties[t];
| throw new Error("Neo4j object is not properly constructed");
| }
` Is there still anything i neglect?
Expected Behavior (Mandatory)
Actual Behavior (Mandatory)
the config is:
Currently used versions 1.4
Versions