-
Notifications
You must be signed in to change notification settings - Fork 776
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
TypeError: Cannot read property 'code' of null #674
Comments
Same problem in v. 8.0.1 when trying to MoveSync with overwrite. |
Seems https://github.com/jprichardson/node-fs-extra/blob/master/lib/remove/rimraf.js#L251 must be showing that it's a directory, but we're getting |
@GitNomster What platform, Node, and |
@RyanZim Platform: Win 10 x64; Node: 10.15.1; fs-extra: 8.0.1 |
Same question in Electron |
I'm getting this one too! (and it's annoying) |
Okay I found the culprit about this, and it has to do with Electron wrapping the "fs" module to handle asar files as directories. Solution: require "original-fs" if we're under Electron! |
If somebody could get a reduced test case for this (based on electron-quick-start, if it's an electron issue); that would be a tremendous help. Also, wondering how this plays out with |
Possibly related: electron/electron#23890 |
Simple solution for electron is to set the process to not treat asar files differently with: |
Closing since this hasn't ever been confirmed; and may have been fixed by electron. Happy to reopen in the future. |
Ubuntu 14.04
11.14.0
fs-extra
version:7.0.1
My travis-ci build (runs on cron - so not triggered by code changes) suddenly started getting this error:
Looks as if fs-extra is catching an error, but the error turns out to be
null
. Not sure how this is possible.Link to the build log https://travis-ci.org/featurist/create-hyperdom-app/builds/525146003
The text was updated successfully, but these errors were encountered: