Open tjarross opened 3 days ago
Et quelques warnings au lancement de npm run dev --legacy-peer-deps
:
> cartes@0.4.0 dev
> next dev -p 8080
▲ Next.js 15.0.0-rc.0
- Local: http://localhost:8080
- Environments: .env.local, .env.development
- Experiments (use with caution):
· reactCompiler
✓ Starting...
⚠ Invalid next.config.mjs options detected:
⚠ Unrecognized key(s) in object: 'compilerOptions'
⚠ See more info here: https://nextjs.org/docs/messages/invalid-next-config
automatically enabled Fast Refresh for 1 custom loader
Contentlayer config change detected. Updating type definitions and data...
Generated 11 documents in .contentlayer
✓ Ready in 3.8s
<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Parsing of /home/thomas/Workdir/Tests/cartes/node_modules/@contentlayer2/core/dist/generation/generate-dotpkg.js for build dependencies failed at 'import(URL.pathToFileURL(filePathJoin(generatedPkgPath, 'generated', 'index.mjs')).href)'.
<w> Build dependencies behind this expression are ignored and might cause incorrect cache invalidation.
Merci ! En effet la commande npm install --legacy-peer-deps
venait du fait que j'utilisaais la version RC1 de Next 15. Bonne nouvelle, hier Next est sorti en 15 définitive :)
Déjà, ça va régler quelques pb.
Et en effet, il faudra nettoyer les dépendances, et faire des MAJ. J'aime bien toujours garder ça à jour.
Il y a un certain nombre de paquets dépréciés utilisés dans le projet qui devraient être corrigés pour accroître la stabilité de l'application.
Voici le retour de la commande
npm install --legacy-peer-deps
:Le retour de la commande
npm audit
: