owtf icon indicating copy to clipboard operation
owtf copied to clipboard

Restore Missing `package.json` File to Fix Build and Dependency Issues - #1297

Open Pa04rth opened this issue 11 months ago • 0 comments

Description

This PR restores the missing package.json file in the owtf/webapp directory. The absence of this file was causing multiple issues, including:

  • Docker build failures (make compose-safe).
  • Dependency installation errors.
  • yarn build command failures due to missing scripts.

The restored package.json includes all necessary dependencies and scripts required for the proper functioning of the web application.


Related Issue

This PR addresses the issue described in #1297 .
The issue outlines the missing package.json file and its impact on the build and installation process.


Motivation and Context

The package.json file is critical for defining the dependencies and scripts for the web application. Its absence was blocking the development and deployment process, causing cascading errors. Restoring this file resolves these issues and ensures the project can be built and run successfully.


Reviewers

@7a
@viyatb


How Has This Been Tested?

  • Verified that the restored package.json allows successful dependency installation using yarn install.
  • Confirmed that the yarn build command works as expected.
  • Tested the make compose-safe command to ensure the Docker build process completes without errors.
  • Checked the application functionality after restoring the file.

**Screenshots **

image


Types of Changes

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] Other

Checklist

  • [x] My code follows the code style (modified PEP8) of this project.
  • [ ] My change requires a change to the documentation.
  • [ ] I have updated the documentation accordingly.

Pa04rth avatar Apr 09 '25 16:04 Pa04rth