question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
joschkacommented, Nov 8, 2016

I had the same issue on Mac OSX 10.11 with different node versions. Removing local fake fs did the trick:

https://github.com/casperjs/casperjs/issues/1608#issuecomment-223821760

0reactions
garriscommented, Nov 2, 2016

I’m on my phone – but if I was at a laptop I’d google for fs.absolute() and see what I could find.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: undefined is not a function - node.js - Stack Overflow
You can get this error when you are trying to destructure an object as it was an array. My bet is that your...
Read more >
Node.js v19.3.0 Documentation
If the function does not return a promise, assert.rejects() will return a rejected Promise with an ERR_INVALID_RETURN_VALUE error. In both cases the error ......
Read more >
Changelog - Cypress Documentation
Installing Cypress on your system now requires Node.js 14, 16 or 18+. ... Fixed a regression where absolute elements were not properly blacked...
Read more >
JavaScript language overview - MDN Web Docs
Undefined : indicating that a variable has not been assigned a value. ... Functions aren't special data structures in JavaScript — they are ......
Read more >
rollup.js
UMD format requires a bundle name rollup main.js --file bundle.js --format ... Emit absolute sourcemap URLs with given base --sourcemapExcludeSources Do not ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found