Need help on node2nix usage

Hello, I am trying to add a game server available on npmjs (the screeps server) to nixpkgs.
I added the package to the node package json, but I get an error when I do a nix-build. This is happening during the install script, it’s calling webpack and returning this error :

Error: Cannot find module './build/Release/isolated_vm'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/nix/store/mqik0izwn6mbvz2l5fniz6k5cnx4lwdr-node_screeps-4.0.5/lib/node_modules/screeps/node_modules/isolated-vm/isolated-vm.js:1:18)

It’s like the build step of a dependency (isolated-vm) is never run, is there a solution to this ?

Maybe that’s a dev dependency? If so, this thread might contain a solution to your problem.

Thanks for the tip @ajs124 but it doesn’t seems to be the same issue