/usr/local/lib/node_modules/snapshooter/src/core/shoot.coffee:90
first_url = first_url.replace /\/index.\w+$/m, ''
^
TypeError: Cannot call method 'replace' of undefined
at new Shoot (/usr/local/lib/node_modules/snapshooter/src/core/shoot.coffee:90:16)
at Snapshooter.module.exports.Snapshooter.shoot (/usr/local/lib/node_modules/snapshooter/src/snapshooter.coffee:91:8)
at module.exports.Snapshooter.init (/usr/local/lib/node_modules/snapshooter/src/snapshooter.coffee:78:15)
at ReadStream.module.exports.Snapshooter.prompt (/usr/local/lib/node_modules/snapshooter/src/snapshooter.coffee:130:8)
at ReadStream.g (events.js:185:14)
at ReadStream.EventEmitter.emit (events.js:88:17)
at TTY.onread (net.js:396:14)
So when trying to make a server to render a local theoricus app:
snapshooter -i http://hems.local:11235 -s -P 3000 -o snapshooting
i get the following error:
/usr/local/lib/node_modules/snapshooter/src/core/shoot.coffee:90 first_url = first_url.replace /\/index.\w+$/m, '' ^ TypeError: Cannot call method 'replace' of undefined at new Shoot (/usr/local/lib/node_modules/snapshooter/src/core/shoot.coffee:90:16) at Snapshooter.module.exports.Snapshooter.shoot (/usr/local/lib/node_modules/snapshooter/src/snapshooter.coffee:91:8) at module.exports.Snapshooter.init (/usr/local/lib/node_modules/snapshooter/src/snapshooter.coffee:78:15) at ReadStream.module.exports.Snapshooter.prompt (/usr/local/lib/node_modules/snapshooter/src/snapshooter.coffee:130:8) at ReadStream.g (events.js:185:14) at ReadStream.EventEmitter.emit (events.js:88:17) at TTY.onread (net.js:396:14)