Skip to content

Cannot read property of null #195

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

Open
notvishwanth opened this issue Jan 10, 2017 · 1 comment
Open

Cannot read property of null #195

notvishwanth opened this issue Jan 10, 2017 · 1 comment

Comments

@notvishwanth
Copy link

i have
python 2.7
node 6.9.2
npm 3.10.9

when i try to run your sample files from tests/low-level-sync
node setup-low-level-sync.js,
I'm getting cannot read property 'mysqlConnection' of null

MysqlConnectionQueued.prototype = new bindings.MysqlConnection();
                                             `` ^

TypeError: Cannot read property 'MysqlConnection' of null
    at Object.<anonymous> (C:\project\nodejs samp\node_modules\libmysqlclient\lib\mysql-libmysqlclient.js:220:47)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\project\nodejs samp\node_modules\libmysqlclient\tests\config.js:21:25)
    at Module._compile (module.js:570:32)

I've extracted the zip file and did the following
npm install
npm isntall node-gyp -g

but still the same problem persists, please help

@Sannis Sannis changed the title cannot read property of null Cannot read property of null Jan 17, 2017
@abhisekdg
Copy link

abhisekdg commented Apr 11, 2017

Node Version - 6.10.2 ( Previously working fine with v0.10.26)
NPM version - 3.10.10
OS - MacOS Sierra 10.12.4

@https://travis-ci.org/Sannis/node-mysql-libmysqlclient/jobs/194103714

var mysqllibclient = require('mysql-libmysqlclient'); ( 1.5.2)

After upgrading the node version to latest, it started throwing error.

MysqlConnectionQueued.prototype = new bindings.MysqlConnection();
TypeError: Cannot read property 'MysqlConnection' of null

Please can anyone suggest how it be supported in latest version of node ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants