Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code not running on my local machine. #3298

Open
Harshit-7373 opened this issue Dec 6, 2024 · 2 comments
Open

Code not running on my local machine. #3298

Harshit-7373 opened this issue Dec 6, 2024 · 2 comments
Labels

Comments

@Harshit-7373
Copy link

p5.js version

No response

What is your operating system?

Mac OS

Web browser and version

No response

Actual Behavior

When I run the code using Docker on my local machine, it doesn't execute properly. I'm encountering the following errors:

  1. There’s an issue with the mailgun.js module, indicating that the version or dependency is not updated. Even though I have updated it, the issue persists.
  2. Another problem is that the manifest.json file is not found at the specified path (./dist/static/manifest.json). Even though it is present there.
Screenshot 2024-12-06 at 9 55 07 PM

Expected Behavior

I want the code to run properly(without any issues) on my local machine.

Steps to reproduce

...

Copy link

welcome bot commented Dec 6, 2024

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.

@Jatin24062005
Copy link

As i work on these and Deep dive into the Documentation and Architechure .The error occurs because the manifest.json file, required by the application, is not generated or present in the dist/static directory. This happens because the build process was not completed before starting the application.

Root Cause:
The issue arises when developers attempt to directly run the command:

docker-compose -f docker-compose-development.yml run --rm app npm run fetch-examples
without first completing the required build process. The manifest.json file is created during the build step, which must be executed before running any further commands.

To resolve this, follow the installation documentation properly. Specifically, ensure that the build step is completed first. Run the following command to build the application:

docker-compose -f docker-compose-development.yml run --rm app npm run build

Once the build process is complete and the necessary files (like manifest.json) are generated, you can proceed with:

docker-compose -f docker-compose-development.yml run --rm app npm run fetch-examples

Why This Happens:
Skipping the build step results in missing files like manifest.json, causing the application to throw a MODULE_NOT_FOUND error. Ensuring the build process is run first prevents such issues.

@Harshit-7373

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants