Issue with Strapi after migrating database

17 Replies
Percy
Percy10mo ago
Project ID: dfeae933-4ede-4022-ad66-77c17a055b6d
LePetitZoriban
LePetitZoriban10mo ago
dfeae933-4ede-4022-ad66-77c17a055b6d
Brody
Brody10mo ago
you need both a package.json and a package-lock.json so please keep them. in your package.json set engines.node to 18
LePetitZoriban
LePetitZoriban10mo ago
Hi, thank you for your answer. I made this change but I still have the following error
LePetitZoriban
LePetitZoriban10mo ago
#10 2.528 error @strapi/[email protected]: The engine "node" is incompatible with this module. Expected version ">=14.19.1 <=18.x.x". Got "21.1.0" #10 2.539 error Found incompatible module. #10 2.539 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. #10 ERROR: process "/bin/bash -ol pipefail -c yarn install --frozen-lockfile" did not complete successfully: exit code: 1 -----
Yarn
Yarn
Fast, reliable, and secure dependency management.
Brody
Brody10mo ago
still using node 21, show me how you have set 18
LePetitZoriban
LePetitZoriban10mo ago
I don't get why, here is my package.json { "name": "strapi", "private": true, "version": "0.1.0", "description": "A Strapi application", "scripts": { "develop": "strapi develop", "start": "strapi start", "build": "strapi build", "strapi": "strapi" }, "devDependencies": {}, "dependencies": { "@strapi/plugin-i18n": "4.11.0", "@strapi/plugin-users-permissions": "4.11.0", "@strapi/provider-upload-cloudinary": "4.11.0", "@strapi/strapi": "4.11.0", "pg": "8.8.0" }, "author": { "name": "A Strapi developer" }, "strapi": { "uuid": "35d7a084-3088-4d0b-869e-f503693ee8e5" }, "engines": { "node": ">=18.0.0", "npm": ">=6.0.0" }, "license": "MIT" } oh wait
Brody
Brody10mo ago
just 18 you are asking for greater than or equal to node 18, thus node 21
LePetitZoriban
LePetitZoriban10mo ago
Yep indeed but I stil have an error
Brody
Brody10mo ago
do you use yarn or npm locally?
LePetitZoriban
LePetitZoriban10mo ago
npm
Brody
Brody10mo ago
then delete the yarn stuff
LePetitZoriban
LePetitZoriban10mo ago
Thank you @Brody the deployment works now! There is an other bug but I will to fix it myself. As I have not been coding for a while it was pretty challenging to dive back in error logs ^^ Thank you!
Brody
Brody10mo ago
no problem, happy to help!
Want results from more Discord servers?
Add your server