server-api icon indicating copy to clipboard operation
server-api copied to clipboard

[BUG] Configuration property "log.dir" is not defined when running npm run start:dev

Open Sourya07 opened this issue 1 month ago • 1 comments

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. (dist/utils/logger.js:11:64)

Expected behavior

The server should start normally, and configuration files should be automatically included in the build.

Screenshots

Image

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?

Are you willing to work on this issue ?

None

Sourya07 avatar Nov 20 '25 12:11 Sourya07

Hii @BOLT04 @princerajpoot20 review this in your free time ☺️

Sourya07 avatar Nov 20 '25 12:11 Sourya07