Open
Description
Hello,
When bumping neo4j-driver package from 4.4.2 to 5.4.0, I'm having issues with the base types of neo4j (Integer, Record, Session etc.).
All my neo4j connections are made using a facade package around neo4j-driver, and exposing basic methods and aliases to the types mentioned above to the rest of the codebase. Everytime typescript needs to infer a return type that includes one of thoses types, I have an error like this one.
(!) Plugin typescript: @rollup/plugin-typescript : The inferred type of 'int' cannot be named without a reference to 'neo4j-driver/node_modules/neo4j-driver-core/types/integer'. This is likely not portable. A type annotation is necessary.
The only simple solution i found until now is to add directly the package neo4j-driver-core as a dependency of my package even though the readme explicitly tells me otherwise.
Dependency schema if unclear:
Codebase ==> My neo4j driver package Wrapper ==> neo4j-driver ==> neo4j-driver-core
^ Exposes some methods with ^ exposes
base neo4j-driver base types underlying
neo4j-driver-core
types
I don't even understand why does this error means exactly, do you have any insights on it ?