| 2 Sep 2025 |
Charles | or uh i guess maybe i don't know what actually "nodejs" is considered to mean | 19:41:20 |
Charles | i'll just ask the question: i help maintain this out-of-tree package here https://git.afnix.fr/afnix/nix-zulip and somewhere between c58ada2eda15d0576e9a2ad74bd8f2318509a40f and 20075955deac2583bb12f07151c2df830ef346b4 of nixpkgs, the build started failing with this error despite nothing in this repository changing:
+ ./tools/webpack --quiet
[webpack-cli] Failed to load '/build/zulip/web/webpack.config.ts' config
[webpack-cli] ReferenceError: exports is not defined in ES module scope
at file:///build/zulip/web/webpack.config.ts:3:23
at ModuleJobSync.runSync (node:internal/modules/esm/module_job:450:37)
at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:429:47)
at loadESMFromCJS (node:internal/modules/cjs/loader:1519:24)
at Module._compile (node:internal/modules/cjs/loader:1670:5)
at Module._compile (/build/zulip/node_modules/.pnpm/pirates@4.0.6/node_modules/pirates/lib/index.js:117:24)
at node:internal/modules/cjs/loader:1820:10
at Object.newLoader [as .ts] (/build/zulip/node_modules/.pnpm/pirates@4.0.6/node_modules/pirates/lib/index.js:121:7)
at Module.load (node:internal/modules/cjs/loader:1423:32)
at Function._load (node:internal/modules/cjs/loader:1246:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Module.require (node:internal/modules/cjs/loader:1445:12)
at require (node:internal/modules/helpers:135:16)
at WebpackCLI.tryRequireThenImport (/build/zulip/node_modules/.pnpm/webpack-cli@6.0.1_webpack-dev-server@5.2.0_webpack@5.98.0/node_modules/webpack-cli/lib/webpack-cli.js:225:30)
at loadConfigByPath (/build/zulip/node_modules/.pnpm/webpack-cli@6.0.1_webpack-dev-server@5.2.0_webpack@5.98.0/node_modules/webpack-cli/lib/webpack-cli.js:1390:38)
at WebpackCLI.loadConfig (/build/zulip/node_modules/.pnpm/webpack-cli@6.0.1_webpack-dev-server@5.2.0_webpack@5.98.0/node_modules/webpack-cli/lib/webpack-cli.js:1490:44)
at WebpackCLI.createCompiler (/build/zulip/node_modules/.pnpm/webpack-cli@6.0.1_webpack-dev-server@5.2.0_webpack@5.98.0/node_modules/webpack-cli/lib/webpack-cli.js:1755:33)
at WebpackCLI.runWebpack (/build/zulip/node_modules/.pnpm/webpack-cli@6.0.1_webpack-dev-server@5.2.0_webpack@5.98.0/node_modules/webpack-cli/lib/webpack-cli.js:1851:31)
at Command.<anonymous> (/build/zulip/node_modules/.pnpm/webpack-cli@6.0.1_webpack-dev-server@5.2.0_webpack@5.98.0/node_modules/webpack-cli/lib/webpack-cli.js:920:32)
at Command.listener [as _actionHandler] (/build/zulip/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/command.js:542:17)
at /build/zulip/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/command.js:1502:14
at Command._chainOrCall (/build/zulip/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/command.js:1386:12)
at Command._parseCommand (/build/zulip/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/command.js:1501:27)
at /build/zulip/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/command.js:1265:27
at Command._chainOrCall (/build/zulip/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/command.js:1386:12)
at Command._dispatchSubcommand (/build/zulip/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/command.js:1261:25)
at Command._parseCommand (/build/zulip/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/command.js:1457:19)
at Command.parseAsync (/build/zulip/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/command.js:1092:16)
at Command.<anonymous> (/build/zulip/node_modules/.pnpm/webpack-cli@6.0.1_webpack-dev-server@5.2.0_webpack@5.98.0/node_modules/webpack-cli/lib/webpack-cli.js:1340:32)
at Command.parseAsync (/build/zulip/node_modules/.pnpm/commander@12.1.0/node_modules/commander/lib/command.js:1092:5)
at WebpackCLI.run (/build/zulip/node_modules/.pnpm/webpack-cli@6.0.1_webpack-dev-server@5.2.0_webpack@5.98.0/node_modules/webpack-cli/lib/webpack-cli.js:1344:9)
at runCLI (/build/zulip/node_modules/.pnpm/webpack-cli@6.0.1_webpack-dev-server@5.2.0_webpack@5.98.0/node_modules/webpack-cli/lib/bootstrap.js:8:9)
Subcommand of ./tools/update-prod-static failed with exit status 2: ./tools/webpack --quiet
Actual error output for the subcommand is just above this.
and i'm curious if anyone knows off the top of their head what this is about/how to fix it
| 19:42:50 |
Charles | src would be https://github.com/zulip/zulip/tree/10.4 | 19:43:33 |
Marie | maybe this? https://github.com/nodejs/node/issues/59364 | 20:03:37 |
Marie | considering c58ada2eda15d0576e9a2ad74bd8f2318509a40f has node 22.18.0 | 20:03:49 |
| @aidalgol:tchncs.de joined the room. | 21:55:39 |
Charles | oh good find, yeah that seems likely: https://github.com/zulip/zulip/blob/10.4/tools/webpack#L18 | 23:23:23 |
Charles | * oh good find, yeah that seems pluasible: https://github.com/zulip/zulip/blob/10.4/tools/webpack#L18 | 23:23:36 |
Charles | hmm, changing it to --no-... or just commenting that out doesn't seem to fix it | 23:28:03 |
Charles | same error all three ways | 23:28:44 |
| 3 Sep 2025 |
| amaan joined the room. | 07:38:39 |
| ghpzin joined the room. | 09:30:29 |
eyJhb | I'm currently trying to update my PR with appium to v3, which means I need to generate a new package-lock.json file, which has all the hashes needed. However, the dependency ajv seems to be the wrong version, which gives me errors when trying to run the project.
I'm currently doing something like:
git clone https://github.com/appium/appium.git
cd appium
git checkout appium@3.0.1
rm package-lock.json
npm install
I can see that the correct version is specified in the packages/appium/package.json, ... that doesn't seem to be used.
Version from the repo: https://github.com/appium/appium/blob/appium%403.0.1/package-lock.json#L4364-L4379 Version I produce: https://gist.github.com/eyJhb/9ec8d24275b1c96f5486feb1d7555ccf#file-package-lock-json-L4163-L4178
Error while trying to run appium
/nix/store/8zh927f5wq7h5nz8ma07wggcr0gbc6v7-appium-unwrapped-3.0.1/lib/node_modules/appium-monorepo/packages/appium/lib/schema/schema.js:257
new Ajv({
^
TypeError: ajv_1.Ajv is not a constructor
at Function._instantiateAjv (/nix/store/8zh927f5wq7h5nz8ma07wggcr0gbc6v7-appium-unwrapped-3.0.1/lib/node_modules/appium-monorepo/packages/appium/lib/schema/schema.js:257:7)
at new AppiumSchema (/nix/store/8zh927f5wq7h5nz8ma07wggcr0gbc6v7-appium-unwrapped-3.0.1/lib/node_modules/appium-monorepo/packages/appium/lib/schema/schema.js:102:30)
at Function.create (/nix/store/8zh927f5wq7h5nz8ma07wggcr0gbc6v7-appium-unwrapped-3.0.1/lib/node_modules/appium-monorepo/packages/appium/lib/schema/schema.js:114:24)
at Object.<anonymous> (/nix/store/8zh927f5wq7h5nz8ma07wggcr0gbc6v7-appium-unwrapped-3.0.1/lib/node_modules/appium-monorepo/packages/appium/lib/schema/schema.js:663:35)
at Module._compile (node:internal/modules/cjs/loader:1554:14)
at Object..js (node:internal/modules/cjs/loader:1706:10)
at Module.load (node:internal/modules/cjs/loader:1289:32)
at Function._load (node:internal/modules/cjs/loader:1108:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
at Module.require (node:internal/modules/cjs/loader:1311:12)
at require (node:internal/modules/helpers:136:16)
at Object.<anonymous> (/nix/store/8zh927f5wq7h5nz8ma07wggcr0gbc6v7-appium-unwrapped-3.0.1/lib/node_modules/appium-monorepo/packages/appium/lib/config.js:10:1)
at Module._compile (node:internal/modules/cjs/loader:1554:14)
at Object..js (node:internal/modules/cjs/loader:1706:10)
at Module.load (node:internal/modules/cjs/loader:1289:32)
| 10:40:44 |
eyJhb | Running npm install --workspaces in the latest docker node container, I get these warnings.
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @sidvind/better-ajv-errors@4.0.0
npm warn Found: ajv@8.17.1
npm warn node_modules/ajv
npm warn overridden ajv@"8.17.1" (was "^8.0.0") from ajv-formats@3.0.1
npm warn node_modules/ajv-formats
npm warn ajv-formats@"3.0.1" from appium@3.0.1
npm warn packages/appium
npm warn 1 more (appium)
npm warn
npm warn Could not resolve dependency:
npm warn peer overridden ajv@"8.17.1" (was "^7.0.0 || ^8.0.0") from @sidvind/better-ajv-errors@4.0.0
npm warn packages/appium/node_modules/@sidvind/better-ajv-errors
npm warn @sidvind/better-ajv-errors@"4.0.0" from appium@3.0.1
npm warn packages/appium
Might help some. God I hate npm/node
| 10:45:49 |
eyJhb | nix-shell -p nodejs lerna
lerna clean
rm package-lock.json
npm install --workspaces --package-lock-only --ignore-scripts
This seems to work. Fucking hell. Might not have cleaned everything up? Maybe?
| 11:06:23 |
eyJhb | ( Marie if you're curious ^ ) | 11:06:32 |
Marie | nice you got it to work | 13:01:56 |
Marie | it's insane how npm doesn't consider all of this a bug | 13:02:22 |
n3tcat | npm is the bug :3 | 13:33:56 |
eyJhb | I think it's very much a "works on my system". Like, we had to make a damn man in the middle proxy for Gradle last time I checked, because it's quite clearly insane :D | 15:19:50 |
eyJhb | But thanks for rubber duckying me in PMs Marie, very much appreciated! I really want to get Appium upstreamed, so that other can use it, and most importantly, so I don't have to maintain it myself :p | 15:20:28 |
| n3tcat | 19:43:18 |
| n3tcat | 19:43:20 |
| n3tcat | 19:43:52 |
| n3tcat | 19:43:52 |
| n3tcat | 19:44:02 |
| 4 Sep 2025 |
| @aidalgol:tchncs.de changed their display name from Aidan Gauland to aidalgol[m]. | 11:23:30 |
| @aidalgol:tchncs.de changed their display name from aidalgol[m] to aidalgol. | 11:24:12 |
| 5 Sep 2025 |
| @ayatsfer:matrix.org left the room. | 11:23:00 |
| 6 Sep 2025 |
| SomeoneSerge (back on matrix) changed their display name from SomeoneSerge (Ever OOMed by Element) to SomeoneSerge (@nixcon & back on matrix). | 09:24:34 |