browserify / browser-resolve

resolve function which support the browser field in package.json
MIT License
102 stars 70 forks source link

AssertionError: no line 0 (line numbers start from 1) while parsing file node_modules\browser-resolve\empty.js #79

Closed shiitake closed 8 years ago

shiitake commented 8 years ago

I'm actually getting this error when trying to run browserfy (via gulp) on my Windows 10 machine running node v 5.5.0.

ghost commented 8 years ago

I did a little digging, and here is another link: https://github.com/zertosh/unreachable-branch-transform/issues/14

shiitake commented 8 years ago

I was able to workaround this issue by adding a blank line (empty comment) into the empty.js file.

stephane-ruhlmann commented 8 years ago

@aft-luke problem seems to come from unreachable-branch-transform/recast

ghost commented 8 years ago

I agree @stephane-ruhlmann that seems to be the root of the problem. For now I think I'm going to have to use npm shrinkwrap until the author @zertosh makes an appearance.

zertosh commented 8 years ago

Sorry everyone. I'll be on a computer in a few hours and push a fix to unreachable-branch-transform.

defunctzombie commented 8 years ago

Closing this as it appears to not be a problem in this module. If that is an incorrect assessment of the conversation please let me know.

zertosh commented 8 years ago

Published unreachable-branch-transform@0.5.1, which uses recast@^0.11.4.