You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a workaround for the projects that face this check issue:
letenv=pkgs.js2nix{package-json=./package.json;yarn-lock=./yarn.lock;overlays=[(self: super: {# TODO: remove once this https://github.com/canva-public/js2nix/issues/20 is resolvedbuildNodeModule=pkgs.lib.makeOverridable(args: (super.buildNodeModuleargs).override{doCheck=false;});})];};inenv.nodeModules
It disables checks for the whole dependency closure.
Some of the NPM modules utilise new feature of Node.js that is called modules, that is declared as:
in
package.json
file. And the current implementation of checks, like:doesn't work with that new
module
type.I found that for the packages of the
module
type, this check would work:that is, the check needs to add
--input-type=module
option and specify the file explicitly.The text was updated successfully, but these errors were encountered: