Closed bertrandgorge closed 3 months ago
I was able to go further.
npm
needs to be 6.x and not more: npm install npm@6 -g
.eslintrc.json
, we need to add the following : "root": true,
as per https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScriptWhen you do that, npm install
and npm run build
finally work. It doesn't produce the right files though... I tried to go through vue ui
and build using the defined tasks but I still don't get what is in the dist folder - I must be missing something!!!
Ok - got it finally - the build script in package.json
needs to read:
"build": "vue-cli-service build --mode production --target lib --name wikisearchfront",
wikisearchfront needs an update to vue3 soon,
happy to see that you figured out how to create a build
running npm run lib
was also an option
"lib": " npx vue-cli-service build --target lib",
Thanks ! I also got an issue with : Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:68:19)
The fix apparently is to downgrade node to LTS 16.20.0:
sudo npm install -g n
sudo n 16.20.0
Hello, this is not a bug but more a request for help...! I try a few changes on the app, and I therefore need to build everything. I use the following commands to do so...
I've tried many things to fix those, but not sure where to go, as not being an expert of vue... Any help would be greatly appreciated!