npm2nix icon indicating copy to clipboard operation
npm2nix copied to clipboard

There is no `file` variable

Open Profpatsch opened this issue 10 years ago • 1 comments

Thus, it crashes.

https://github.com/NixOS/npm2nix/blob/master/src/npm2nix.coffee#L201 https://github.com/NixOS/npm2nix/blob/master/src/npm2nix.coffee#L238

Yay for dynamically typed languages

Profpatsch avatar Sep 19 '15 09:09 Profpatsch

Checking it with flow:

/home/philip/tmp/npm2nix/src/npm2nix.js:265:25,28: identifier file
Could not resolve name

/home/philip/tmp/npm2nix/src/npm2nix.js:298:23,26: identifier file
Could not resolve name

Profpatsch avatar Sep 19 '15 10:09 Profpatsch