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

query_stations.js throws exception #36

Closed
khassel opened this issue Feb 19, 2018 · 5 comments
Closed

query_stations.js throws exception #36

khassel opened this issue Feb 19, 2018 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@khassel
Copy link

khassel commented Feb 19, 2018

Hi,

thanks for the great module!

I'm getting the following error executing the query_stations.js on my raspi.
The Script works without the 2 references on 'arrayunique', so i could query my station anyway ...

module.js:472
    throw err;
    ^

Error: Cannot find module 'array-unique'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/opt/magic_mirror/modules/MMM-PublicTransportHafas/convenience/query_stations.js:6:21)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)

@raywo
Copy link
Owner

raywo commented Feb 19, 2018

Did you run npm install?

@khassel
Copy link
Author

khassel commented Feb 19, 2018

yes.

root@raspi3:/opt/magic_mirror/modules/MMM-PublicTransportHafas# npm install
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info linkStuff [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info ok
root@raspi3:/opt/magic_mirror/modules/MMM-PublicTransportHafas# node ./convenience/query_stations.js
module.js:472
    throw err;
    ^

Error: Cannot find module 'array-unique'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/opt/magic_mirror/modules/MMM-PublicTransportHafas/convenience/query_stations.js:6:21)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)

@raywo
Copy link
Owner

raywo commented Feb 19, 2018

I forgot to require this module. A fix is underway.

@raywo raywo added the bug Something isn't working label Feb 19, 2018
@raywo raywo self-assigned this Feb 19, 2018
@raywo raywo added this to To do in PublicTransportHafas via automation Feb 19, 2018
@raywo raywo moved this from To do to In progress in PublicTransportHafas Feb 19, 2018
@raywo
Copy link
Owner

raywo commented Feb 19, 2018

Just merged the fix. Run git pull && npm install.

@khassel
Copy link
Author

khassel commented Feb 19, 2018

works, thank you!

@khassel khassel closed this as completed Feb 19, 2018
PublicTransportHafas automation moved this from In progress to Done Feb 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants