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?
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:
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