nix-community / yarn2nix

Generate nix expressions from a yarn.lock file [maintainer=???]
GNU General Public License v3.0
123 stars 61 forks source link

Building with yarn2nix results in a broken js bundle #173

Open kolaente opened 3 years ago

kolaente commented 3 years ago

I'm trying to build this with yarn2nix. The build runs fine, but the resulting js bundle has errors when trying to actually use the application. There's a bunch of error messages in the browser console:

TypeError: Object(...) is not a function

The resulting bundle works fine when I'm building it manually with yarn run build.

From digesting the bundle and comparing it with a working one it looks roughly the same. Both bundles are not equal, but it looks like most of the differences come from different obfuscated names for variables and such which should be fine. I've also checked the version of yarn on my machine and in yarn2nix are the same.

Is this an issue with my application or did I miss something when packaging it?

cc @jtojnar