Closed pittst3r closed 7 years ago
@robbiepitts the stack trace appears to ahve nothing to do with hash-for-dep
, looks like an issue in heimdall v0.2
It's definitely hash-for-dep. We are creating nodes and not stopping them or something when provided a directory that does not contain a package.json.
I'll put up a failing test tomorrow, but I asked @robbiepitts to open the issue so I didn't forget.
heimdall looks to correctly balance this: https://github.com/stefanpenner/hash-for-dep/blob/de369f3b24f6d38aad7bf723fe475d0b7334c309/index.js#L57-L96
The exception is if an exception is thrown, at which point the program should crash. I believe the issue is heimdall should be more forgiving in this scenario, maybe just warn, rather then hiding the root cause.
cc @cthoburn / @hjdivad
I believe this is fixed upstream
I ran into the following error with @glimmer/build, talked to @rwjblue about it and he said that it looked like a bug here. This PR fixes it temporarily.