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

Startup failure #2

Closed
tivac opened this issue Jan 26, 2017 · 3 comments
Closed

Startup failure #2

tivac opened this issue Jan 26, 2017 · 3 comments

Comments

@tivac
Copy link

tivac commented Jan 26, 2017

Trying to run tlapse for the first time and I'm getting an error.

$ tlapse -- localhost:3000

Screenshots directory: ./tlapse
Interval: 1m
C:\Users\Patrick\Documents\Code\gw2api-explorer\node_modules\tlapse\index.js:67
    if (latestFile.indexOf('.png.') !== -1) {
                  ^

TypeError: Cannot read property 'indexOf' of undefined
    at run (C:\Users\Patrick\Documents\Code\gw2api-explorer\node_modules\tlapse\index.js:67:19)
    at Object.<anonymous> (C:\Users\Patrick\Documents\Code\gw2api-explorer\node_modules\tlapse\index.js:85:1)
    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)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:420:7)
    at startup (bootstrap_node.js:139:9)

The tlapse directory is created successfully, but it seems like it's barfing when trying to find a previous screenshot when one doesn't exist. I guess I'll try and make one manually?

@tivac
Copy link
Author

tivac commented Jan 26, 2017

I worked around this by creating a bogus tlapse/temp.png file and tlapse started successfully. Then I ran face-first into #3 because I'm on Windows.

@typicode
Copy link
Owner

typicode commented Jan 26, 2017

Hi @tivac,

Thanks for the report, I didn't encounter this issue when testing.
I'll publish a fix today.

@typicode
Copy link
Owner

Should be good in v0.1.4

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