| 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)
|