Open-CSP / WikiSearchFront

Front-end for the WikiSearch extension.
GNU General Public License v2.0
3 stars 6 forks source link

Fire mw js hook before the api is called #22

Closed wgevaert closed 1 month ago

wgevaert commented 2 months ago

See https://doc.wikimedia.org/mediawiki-core/master/js/mw.html#.hook for hook documentation

I am not sure how compiling works. I get this output when I run npm install:

npm warn old lockfile
npm warn old lockfile The package-lock.json file was created with an old version of npm,
npm warn old lockfile so supplemental metadata must be fetched from the registry.
npm warn old lockfile
npm warn old lockfile This is a one-time fix-up, please be patient...
npm warn old lockfile
npm warn old lockfile Could not fetch metadata for vue-loader-v16@16.8.3 vue-loader-v16: No matching version found for vue-loader-v16@16.8.3.
npm warn old lockfile     at module.exports (/usr/local/lib/node_modules/npm/node_modules/npm-pick-manifest/lib/index.js:209:23)
npm warn old lockfile     at RegistryFetcher.manifest (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/registry.js:131:54)
npm warn old lockfile     at async /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:734:24 {
npm warn old lockfile   code: 'ETARGET',
npm warn old lockfile   type: 'version',
npm warn old lockfile   wanted: '16.8.3',
npm warn old lockfile   versions: [
npm warn old lockfile     '16.0.0-beta.5',
npm warn old lockfile     '16.0.0-beta.5.1',
npm warn old lockfile     '16.0.0-beta.5.2',
npm warn old lockfile     '16.0.0-beta.5.3',
npm warn old lockfile     '16.0.0-beta.5.4'
npm warn old lockfile   ],
npm warn old lockfile   distTags: { latest: '16.0.0-beta.5.4' },
npm warn old lockfile   defaultTag: 'latest'
npm warn old lockfile }

removed 24 packages, and audited 2091 packages in 15s
/* some more output */

When I run second time:

$ npm install
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @vue/cli-plugin-eslint@4.5.15
npm error Found: eslint@7.32.0
npm error node_modules/eslint
npm error   dev eslint@"^7.32.0" from the root project
npm error   peer eslint@">= 4.12.1" from babel-eslint@10.1.0
npm error   node_modules/babel-eslint
npm error     dev babel-eslint@"^10.1.0" from the root project
npm error   5 more (eslint-config-airbnb-base, eslint-plugin-import, ...)
npm error
npm error Could not resolve dependency:
npm error peer eslint@">= 1.6.0 < 7.0.0" from @vue/cli-plugin-eslint@4.5.15
npm error node_modules/@vue/cli-plugin-eslint
npm error   dev @vue/cli-plugin-eslint@"~4.5.0" from the root project
npm error
npm error Conflicting peer dependency: eslint@6.8.0
npm error node_modules/eslint
npm error   peer eslint@">= 1.6.0 < 7.0.0" from @vue/cli-plugin-eslint@4.5.15
npm error   node_modules/@vue/cli-plugin-eslint
npm error     dev @vue/cli-plugin-eslint@"~4.5.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/wgevaert/.npm/_logs/2024-04-26T08_26_50_656Z-eresolve-report.txt

npm error A complete log of this run can be found in: /Users/wgevaert/.npm/_logs/2024-04-26T08_26_50_656Z-debug-0.log

And it creates a vue-project directory?

My npm version: 10.6.0

bertrandgorge commented 2 months ago

Hello, you can refer to this thread for more information on how to build: https://github.com/Open-CSP/WikiSearchFront/issues/20

Basically: