owtf icon indicating copy to clipboard operation
owtf copied to clipboard

Missing package.json in owtf/webapp Directory causes build and installation errors.

Open Pa04rth opened this issue 1 year ago • 1 comments

Description:

The package.json file is missing in the owtf/webapp directory, which is causing multiple errors during the build and installation process. This file is essential for defining the dependencies and scripts for the web application.

Steps to Reproduce:

Clone the repository.

  • Run the make compose-safe command.
  • Observe the following errors: Error 1: During the Docker build process: Error 2: When running yarn build:

Expected Behavior:

The make compose-safe command should successfully build the Docker containers and install all dependencies without errors.

Actual Behavior:

The build process fails due to the missing package.json file, which prevents the installation of Node.js dependencies and the execution of the yarn build command.

This issue is also the reason behind more issues which are related to installation process such as - #1296 , After my PR , the maintainers may close both the issues and also the related ones.

Please review this , and assign me the issue - @7a @viyatb @rahulsurwade08

Pa04rth avatar Apr 09 '25 14:04 Pa04rth

Proposed Solution -

  • Restore the package.json file in the owtf/webapp directory.
  • Ensure that the package.json file includes the necessary dependencies and scripts
  • I have already restored the package.json after studying the old commit history , will send this over a PR

Pa04rth avatar Apr 09 '25 14:04 Pa04rth