frigate.web: fix build on Node 22.12
Node 22.12 introduced [a semi-breaking change][1] (even though it’s not documented as such, it’s clearly breaking this). Pass a flag to Node to disable it. See also [related issue][2]. [1]: https://nodejs.org/en/blog/release/v22.12.0#requireesm-is-now-enabled-by-default [2]: https://github.com/nodejs/node/issues/56155#issuecomment-2525032281
This commit is contained in:
@@ -28,6 +28,8 @@ buildNpmPackage {
|
||||
|
||||
npmDepsHash = "sha256-PLs3oCWQjK38eHgdQt2Qkj7YqkfanC8JnLMpzMjNfxU=";
|
||||
|
||||
env.NODE_OPTIONS = "--no-experimental-require-module";
|
||||
|
||||
installPhase = ''
|
||||
cp -rv dist/ $out
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user