Missing package.json in owtf/webapp Directory causes build and installation errors.
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
Proposed Solution -
- Restore the
package.jsonfile in theowtf/webappdirectory. - Ensure that the
package.jsonfile 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