garris / garris/BackstopJS

TypeError: undefined is not a function (evaluating 'fs.absolute(require('system').args[3])')

Open
#340 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

I just did the following (running node v5.11.1):
```
backstop genConfig # seems to be successfull
```
And I'll get the followinging error:
```
$ backstop reference

BackstopJS CWD: /home/folder/www/project
BackstopJS loading config: /home/folder/www/project/backstop.json

COMMAND | Executing core for `reference`
clean | bitmaps_reference was cleaned.

Running CasperJS with: [ '/home/folder/npm/lib/node_modules/backstopjs/capture/genBitmaps.js' ]
CasperJS: I'm `fs` modules
CasperJS: TypeError: undefined is not a function (evaluating 'fs.absolute(require('system').args[3])')
CasperJS:
CasperJS: phantomjs://code/genBitmaps.js:5 in global code
CasperJS: :0 in injectJs
CasperJS: phantomjs://code/bootstrap.js:435
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with Node v5.11.1 by running `backstop genConfig` followed by `backstop reference`. Start with `capture/genBitmaps.js`, especially the failing `fs.absolute(require('system').args[3])` call, and compare the available runtime APIs. Done means the reference command completes without this TypeError and generates the expected reference bitmaps.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.