my code is returning the same value even if i change the code
I want to know what happened
my code is returning the same value even if i change the code
I want to know what happened
I highly recommend you to remove dist file first and build and rerun your project.
rm -rf dist
npm run build
npm run start:dev
I'm not sure you faced the issue while adding a new model or updated the schema of orm module.
If yes, According to this link NestJS won't automatically copy your assets to the dist folder moreover as I described earlier is not compatible with glob static paths such as entities property in TypeOrmModule.
Try the following:
Add the rimraf lib:
yarn add rimraf
Then create a new script in the scripts section of the package.json:
"prebuild":"rimraf dist"