[BUG] Configuration property "log.dir" is not defined when running npm run start:dev
Describe the bug.
Running the development server using:
npm run start:dev
fails with the following error:
WARNING: No configurations found in configuration directory: /.../server-api/dist/configs
Error: Configuration property "log.dir" is not defined
This error comes from the config npm module. It indicates that the config folder (with default.json or other environment configs) is either: • Missing in the project root • Or not copied into dist/ after TypeScript build
Error
Error: Configuration property "log.dir" is not defined
at Config.get (node_modules/config/lib/config.js:182:11)
at Object.
Expected behavior
The server should start normally, and configuration files should be automatically included in the build.
Screenshots
How to Reproduce
Run the command
npm run start:dev
🖥️ Device Information [optional]
- Operating System (OS):
- Browser:
- Browser Version:
👀 Have you checked for similar open issues?
- [x] I checked and didn't find similar issue
🏢 Have you read the Contributing Guidelines?
- [x] I have read the Contributing Guidelines
Are you willing to work on this issue ?
None
Hii @BOLT04 @princerajpoot20 review this in your free time ☺️