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

ERROR TRYING RO RUN IT #19

Closed
zaazo opened this issue Oct 21, 2024 · 6 comments
Closed

ERROR TRYING RO RUN IT #19

zaazo opened this issue Oct 21, 2024 · 6 comments

Comments

@zaazo
Copy link

zaazo commented Oct 21, 2024

Captura de pantalla 2024-10-21 191407

I tried to solve this problem for hours but I can't seem to make it work I don't know why. I'm using win 11

@vgcman16
Copy link

The error in the screenshot points to a runtime issue with Miniflare when trying to start the development environment using pnpm run dev. Specifically, Miniflare, a tool often used to emulate Cloudflare Workers, is encountering an access violation. This kind of error usually occurs due to issues related to:

1.	Node.js Compatibility: Sometimes newer Node.js versions are not fully compatible with certain modules.
2.	Miniflare Configuration: There could be an issue with the way the workers are being assembled.
3.	Permissions: Access violation errors may occur if certain files or folders don’t have the necessary permissions.
4.	Corrupted Installation: Some packages might not have installed correctly, especially when using pnpm.

Possible Solutions

1.	Check Node.js Version:
•	Try switching to a different Node version using nvm (Node Version Manager).

nvm use 18

2.	Reinstall Dependencies:
•	Clear the pnpm store and reinstall dependencies:

pnpm store prune
pnpm install

3.	Check Permissions:
•	Ensure you have the necessary permissions to access all directories related to the project.
•	On Windows, try running the command prompt or terminal as Administrator.
4.	Downgrade or Upgrade Miniflare:
•	If the error persists, try changing the version of miniflare in your package.json:

pnpm install miniflare@latest

5.	Use WSL (Windows Subsystem for Linux):
•	If you encounter repeated issues on Windows, try running the development environment in WSL.
6.	Check Configuration Files:
•	Look at any .wrangler or Miniflare configuration files to ensure there are no errors or missing fields.

If the issue persists, let me know any recent changes you made to the code or configuration so I can help further debug it.

@zaazo
Copy link
Author

zaazo commented Oct 21, 2024

I didn't make any changes and I did exactly everything that it's written but it didn't help to make it work and I'm still facing the error

@zaazo
Copy link
Author

zaazo commented Oct 22, 2024

yeah @vgcman16 I tried on a virtualbox using ubuntu and It worked fine

@Toolbox-AI
Copy link

I get the same error. Fresh clone of repo. I guess it could be the windows security ramswomware protection? if so what would i need to exclude?

@zaazo
Copy link
Author

zaazo commented Oct 26, 2024

I get the same error. Fresh clone of repo. I guess it could be the windows security ramswomware protection? if so what would i need to exclude?

yes I think so, because with virtual box and Ubuntu I had no problem running it while I did have some problems with the models

@yffaffy
Copy link

yffaffy commented Oct 28, 2024

Check you have the latest version of Visual Studio C++ installed (14.40.33816)

I'm not sure if it's the same for Windows 11 but the steps to check the version on Windows 10 are:

  1. Settings > Apps > Apps & features
  2. Click on Microsoft Visual Studio C++ 2015-2022 to check the version.

If not, download/install the latest version here and restart your computer:
https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

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

No branches or pull requests

5 participants