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

Is this dead repo? Cant run test script. #3

Open
hostmit opened this issue Aug 23, 2018 · 1 comment
Open

Is this dead repo? Cant run test script. #3

hostmit opened this issue Aug 23, 2018 · 1 comment

Comments

@hostmit
Copy link

hostmit commented Aug 23, 2018

/home/hostmit/orange-security/nodejs/test.js:7
modem.error('error', function() {
^

TypeError: modem.error is not a function
at Object. (/home/hostmit/orange-security/nodejs/test.js:7:7)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:266:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)

Well, when I comment out .error, getting

/home/hostmit/orange-security/nodejs/node_modules/simcom/lib/modem.js:42
this.port = new serialport.SerialPort(this.device, {
^

TypeError: serialport.SerialPort is not a constructor
at Modem.open (/home/hostmit/orange-security/nodejs/node_modules/simcom/lib/modem.js:42:19)
at Object. (/home/hostmit/orange-security/nodejs/test.js:11:7)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:266:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)

@arunseba
Copy link

Hey @hostmit ,

I'm getting the same error. Have you got any solution for that

Thanks in advance

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