Using versionCheckHook Running phase: unpackPhase unpacking source archive /nix/store/gai5bxh2k5dby37k5nqhhjb8prrz56gi-source source root is source Running phase: patchPhase Executing npmConfigHook Configuring npm Validating consistency between /nix/var/nix/builds/nix-4415-1341270204/source/package-lock.json and /nix/store/kzsmbhx70c6d014wc7prq0ibaqp2f8cy-codegraph-1.6.1-npm-deps/package-lock.json Making cache writable Setting npm_config_cache to /nix/var/nix/builds/nix-4415-1341270204/cache Installing dependencies npm warn Unknown env config "nodedir". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn Unknown env config "platform". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn Unknown env config "arch". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn deprecated whatwg-encoding@3.1.1: Use @exodus/bytes instead for a more spec-conformant and faster implementation added 183 packages, and audited 185 packages in 6s 34 packages are looking for funding run `npm fund` for details found 0 vulnerabilities patching script interpreter paths in node_modules node_modules/tldts/bin/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/7pn7zw2sciv3fih9l4xpyvx0q8hlrr0w-nodejs-24.20.0/bin/node" node_modules/@sveltejs/package/svelte-package.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/7pn7zw2sciv3fih9l4xpyvx0q8hlrr0w-nodejs-24.20.0/bin/node" node_modules/nanoid/bin/nanoid.cjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/7pn7zw2sciv3fih9l4xpyvx0q8hlrr0w-nodejs-24.20.0/bin/node" node_modules/acorn/bin/acorn: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/7pn7zw2sciv3fih9l4xpyvx0q8hlrr0w-nodejs-24.20.0/bin/node" node_modules/vitest/vitest.mjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/7pn7zw2sciv3fih9l4xpyvx0q8hlrr0w-nodejs-24.20.0/bin/node" node_modules/typescript/bin/tsserver: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/7pn7zw2sciv3fih9l4xpyvx0q8hlrr0w-nodejs-24.20.0/bin/node" node_modules/typescript/bin/tsc: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/7pn7zw2sciv3fih9l4xpyvx0q8hlrr0w-nodejs-24.20.0/bin/node" node_modules/semver/bin/semver.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/7pn7zw2sciv3fih9l4xpyvx0q8hlrr0w-nodejs-24.20.0/bin/node" node_modules/vite/bin/vite.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/7pn7zw2sciv3fih9l4xpyvx0q8hlrr0w-nodejs-24.20.0/bin/node" node_modules/rollup/dist/bin/rollup: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/7pn7zw2sciv3fih9l4xpyvx0q8hlrr0w-nodejs-24.20.0/bin/node" node_modules/vite-node/vite-node.mjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/7pn7zw2sciv3fih9l4xpyvx0q8hlrr0w-nodejs-24.20.0/bin/node" node_modules/svelte-check/bin/svelte-check: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/7pn7zw2sciv3fih9l4xpyvx0q8hlrr0w-nodejs-24.20.0/bin/node" node_modules/why-is-node-running/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/7pn7zw2sciv3fih9l4xpyvx0q8hlrr0w-nodejs-24.20.0/bin/node" node_modules/esbuild/bin/esbuild: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/7pn7zw2sciv3fih9l4xpyvx0q8hlrr0w-nodejs-24.20.0/bin/node" npm warn Unknown env config "nodedir". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn Unknown env config "platform". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn Unknown env config "arch". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn rebuild 2 packages have install scripts not yet covered by allowScripts. Run `npm install-scripts ls` to review. rebuilt dependencies successfully patching script interpreter paths in node_modules Finished npmConfigHook Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase no configure script, doing nothing Running phase: buildPhase Executing npmBuildHook npm warn Unknown env config "nodedir". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn Unknown env config "platform". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn Unknown env config "arch". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. > @colbymchenry/codegraph@1.6.1 build > tsc && npm run copy-assets && npm run build:ui && node -e "require('fs').chmodSync('dist/bin/codegraph.js', 0o755)" npm warn Unknown env config "nodedir". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn Unknown env config "platform". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn Unknown env config "arch". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. > @colbymchenry/codegraph@1.6.1 copy-assets > node -e "const fs=require('fs');fs.mkdirSync('dist/db',{recursive:true});fs.copyFileSync('src/db/schema.sql','dist/db/schema.sql');fs.mkdirSync('dist/extraction/wasm',{recursive:true});fs.readdirSync('src/extraction/wasm').filter(f=>f.endsWith('.wasm')).forEach(f=>fs.copyFileSync('src/extraction/wasm/'+f,'dist/extraction/wasm/'+f))" npm warn Unknown env config "nodedir". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn Unknown env config "platform". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn Unknown env config "arch". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. > @colbymchenry/codegraph@1.6.1 build:ui > npm run build --workspace ui && node scripts/check-ui-build.mjs npm warn Unknown env config "nodedir". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn Unknown env config "platform". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn Unknown env config "arch". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. > @colbymchenry/codegraph-ui@1.6.0 build > vite build vite v5.4.21 building for production... ✓ 3 modules transformed. x Build failed in 208ms error during build: [vite-plugin-svelte:load-custom] Could not load /nix/var/nix/builds/nix-4415-1341270204/source/ui/src/App.svelte (imported by src/main.ts): Cannot read properties of undefined (reading 'config') at Object.handler (file:///nix/var/nix/builds/nix-4415-1341270204/source/ui/node_modules/@sveltejs/vite-plugin-svelte/src/plugins/load-custom.js:24:37) at file:///nix/var/nix/builds/nix-4415-1341270204/source/node_modules/rollup/dist/es/shared/node-entry.js:22548:40 at async PluginDriver.hookFirstAndGetPlugin (file:///nix/var/nix/builds/nix-4415-1341270204/source/node_modules/rollup/dist/es/shared/node-entry.js:22430:28) at async file:///nix/var/nix/builds/nix-4415-1341270204/source/node_modules/rollup/dist/es/shared/node-entry.js:21422:33 at async Queue.work (file:///nix/var/nix/builds/nix-4415-1341270204/source/node_modules/rollup/dist/es/shared/node-entry.js:22658:32) npm error Lifecycle script `build` failed with error: npm error code 1 npm error path /nix/var/nix/builds/nix-4415-1341270204/source/ui npm error workspace @colbymchenry/codegraph-ui@1.6.0 npm error location /nix/var/nix/builds/nix-4415-1341270204/source/ui npm error command failed npm error command sh -c vite build ERROR: `npm run build [...]` failed Here are a few things you can try, depending on the error: 1. Make sure your build script (build) exists If there is none, set `dontNpmBuild = true`. 2. If the error being thrown is something similar to "error:0308010C:digital envelope routines::unsupported", add `NODE_OPTIONS = "--openssl-legacy-provider"` to your derivation See https://github.com/webpack/webpack/issues/14532 for more information.