I am having the problem with npm directory, it is directing to the different project I was working before

I have been working on other project which has a very different directory/ env/ andy database/
both projects are local , but now in this project the error is of the other project which is totally closed
both are nest js projects.

it appears when I run the following command
npm run seed:run

the errors is given below

🌱  TypeORM Seeding v1.6.1
✔ ORM Config loaded
✔ Factories are imported
✔ Seeders are imported
✖ Database connection failed! Check your typeORM config file.
../uqoud/uqoud_be/src/database/entities/field-data.entity.ts:3:28 - error TS2307: Cannot find module 'src/models/field-data.model' or its corresponding type declarations.

3 import { IFieldData } from 'src/models/field-data.model';
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! auth-nest-test-task@0.0.1 seed:run: `ts-node ./node_modules/typeorm-seeding/dist/cli.js seed  `
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the auth-nest-test-task@0.0.1 seed:run script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/work/.npm/_logs/2023-02-01T12_18_05_286Z-debug.log

Please do not use the ask for help feature on some random challenge to create a thread for a totally unrelated question. That is just very confusing.

Please update your title to something descriptive. I will remove the challenge code and link.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.