2 Sep 2025 |
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 changed their display name from Aidan Gauland to aidalgol[m]. | 11:23:30 |
| aidalgol 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 |
7 Sep 2025 |
| Ab Kein joined the room. | 04:51:50 |
9 Sep 2025 |
| amaan set a profile picture. | 07:59:21 |
| amaan changed their profile picture. | 07:59:36 |
| amaan changed their profile picture. | 07:59:55 |
10 Sep 2025 |
| SomeoneSerge (back on matrix) changed their display name from SomeoneSerge (@nixcon & back on matrix) to SomeoneSerge (back on matrix). | 00:38:07 |
12 Sep 2025 |
| aidalgol set a profile picture. | 09:21:40 |