TypeError: undefined is not a function (evaluating 'fs.absolute(require('system').args[3])')
See original GitHub issueI 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:
- Created 7 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
I’m on my phone – but if I was at a laptop I’d google for fs.absolute() and see what I could find.