Skip to content

React Native compatibility #826

Open
@tomasAlabes

Description

@tomasAlabes

Hi, I'm using the use-neo4j library to build an app that communicates with Neo4j Cloud AuraDB. Using React Native. While building for the app for it, this happens:

Android Bundling failed 4588ms
Unable to resolve module net from ~/Documents/ActiveProjects/connections/node_modules/neo4j-driver-bolt-connection/lib/channel/node/node-channel.js: net could not be found within the project or in these directories:
  node_modules

If you are sure the module exists, try these steps:
 1. Clear watchman watches: watchman watch-del-all
 2. Delete node_modules and run yarn install
 3. Reset Metro's cache: yarn start --reset-cache
 4. Remove the cache: rm -rf /tmp/metro-*
  22 |  * limitations under the License.
  23 |  */
> 24 | var net_1 = __importDefault(require("net"));
     |                                      ^
  25 | var tls_1 = __importDefault(require("tls"));
  26 | var fs_1 = __importDefault(require("fs"));
  27 | var channel_buf_1 = __importDefault(require("../channel-buf"));

I think it's related to #396

Could this driver be platform agnostic?

use-neo4j: 0.3.6
neo4j-driver-bolt-connection: 4.4.1
neo4j-driver-core: 4.4.1
react-native: 0.64.3
expo: 4.12.8

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions