Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined (reading 'variables') => process.config #27556

Open
Heziode opened this issue Jan 4, 2025 · 0 comments
Open
Labels
bug Something isn't working correctly node compat

Comments

@Heziode
Copy link

Heziode commented Jan 4, 2025

I updated to Deno 2.X few months ago, and I had an issue when using Neo4j package from NPM (even with the latest Deno version. 2.1.4):

import neo4j from "npm:[email protected]";

const driver = neo4j.driver("bolt://localhost:7687", neo4j.auth.basic("neo4j", "0000"));

I got the following error:

error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'variables')
    at getSystemInfo (file:///Users/heziode/Library/Caches/deno/npm/registry.npmjs.org/neo4j-driver-core/5.27.0/lib/internal/bolt-agent/node/bolt-agent.js:30:34)
    at Object.fromVersion (file:///Users/heziode/Library/Caches/deno/npm/registry.npmjs.org/neo4j-driver-core/5.27.0/lib/internal/bolt-agent/node/bolt-agent.js:40:22)
    at Object.driver (file:///Users/heziode/Library/Caches/deno/npm/registry.npmjs.org/neo4j-driver/5.27.0/lib/index.js:205:63)
    at file:///Path/To/Project/script.ts:3:22

The line in bolt-agent.js:

        hostArch: process.config.variables.host_arch,

Version: Deno 2.1.4
OS: macOS (but I can reprooduce on Debian)


The script works with Deno 1.46.3

@marvinhagemeister marvinhagemeister added bug Something isn't working correctly node compat labels Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly node compat
Projects
None yet
Development

No branches or pull requests

2 participants