rvl / bower2nix

Generate nix expressions to fetch bower dependencies.
Other
6 stars 10 forks source link

Does not work on Node 12 #20

Closed dasJ closed 1 month ago

dasJ commented 3 years ago

I don't really know a lot about nodejs but the error seems to be because of an old fs-extra version. Full message:

$ bower2nix
# Generated by bower2nix v3.2.0 (https://github.com/rvl/bower2nix)
{ fetchbower, buildEnv }:
buildEnv { name = "bower-env"; ignoreCollisions = true; paths = [
Parsing /path/to/src/bower.json failed: ReferenceError: primordials is not defined
superboum commented 2 years ago

This error is due to the dependency bower-json. I fixed the error by switching bower-json to version 0.8.4 in the package.json file.