Closed stellasia closed 3 years ago
I wonder if this reproducible for all layer operations. Does it occur only in trying to select node labels of a specific layer type?
Reproed this issue, and it's weird in that the driver boot works on current master, but connection is lost permanently after the first layer operation. Steps:
Observation: Layer gets updated / Created and briefly rendered, then map goes back to blank state. The following sequence of errors are seen in debug console
Unable to load preload script: C:\Program Files\Neo4j\resources\app.asar\src\app-GraphAppContainer\main\injectContext.js
(anonymous) @ init.ts:204
init.ts:205 Error: App Root path is not defined
at doInject (C:\Program Files\Neo4j\resources\app.asar\src\app-GraphAppContainer\main\injectContext.js:13)
at Object.<anonymous> (C:\Program Files\Neo4j\resources\app.asar\src\app-GraphAppContainer\main\injectContext.js:50)
at Object.<anonymous> (C:\Program Files\Neo4j\resources\app.asar\src\app-GraphAppContainer\main\injectContext.js:54)
at Module._compile (internal/modules/cjs/loader.js:880)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:892)
at Module.load (internal/modules/cjs/loader.js:735)
at Module._load (internal/modules/cjs/loader.js:648)
at Module._load (electron/js2c/asar.js:717)
at Function.Module._load (electron/js2c/asar.js:717)
at Object.<anonymous> (init.ts:202)
(anonymous) @ init.ts:205
4neo4jService.js:32 TypeError: Cannot read property 'getContext' of undefined
at neo4jService.js:11
at c (runtime.js:63)
at Generator._invoke (runtime.js:293)
at Generator.next (runtime.js:118)
at r (asyncToGenerator.js:3)
at a (asyncToGenerator.js:25)
at asyncToGenerator.js:32
at new Promise (<anonymous>)
at e._getNeo4jDriver (asyncToGenerator.js:21)
at neo4jService.js:40
Intepretation:
App loses connection to neo4j window context and therefore neo4j driver connection is permanently lost.
Fixed in #89 / #88
With error:
@jodom https://github.com/stellasia/neomap/issues/78