HabitRPG / habitica

A habit tracker app which treats your goals like a Role Playing Game.
https://habitica.com
Other
12.04k stars 4.1k forks source link

'habitica' should be listed in the project's dependencies. #15039

Open rafucuk opened 11 months ago

rafucuk commented 11 months ago

General Info

Ubuntu, ubuntu@mail:~/habitica$ node --version; npm --version v14.21.3 6.14.18

Description

npm run client:dev returns the error bellow

Console Errors

error in ./src/store/index.js

Module Error (from ./node_modules/eslint-loader/index.js):

/home/ubuntu/habitica/website/client/src/store/index.js 3:1 error 'habitica' should be listed in the project's dependencies. Run 'npm i -S habitica' to add it import/no-extraneous-dependencies 4:1 error 'habitica' should be listed in the project's dependencies. Run 'npm i -S habitica' to add it import/no-extraneous-dependencies 5:1 error 'habitica' should be listed in the project's dependencies. Run 'npm i -S habitica' to add it import/no-extraneous-dependencies

✖ 3 problems (3 errors, 0 warnings)

@ ./src/main.js 12:0-31 38:12-20 @ multi (webpack)-dev-server/client?http://localhost:8081&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

CuriousMagpie commented 6 months ago

Have you tried running npm ci to get a clean install of all the dependencies? We are on Node 20 and MongoDB 5.0.23 now. These updates may clear up your issue. Let us know if they do!