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

munmap_chunk() error when running pnpm dev #23

Open
nadiaenh opened this issue Apr 1, 2024 · 5 comments
Open

munmap_chunk() error when running pnpm dev #23

nadiaenh opened this issue Apr 1, 2024 · 5 comments

Comments

@nadiaenh
Copy link

nadiaenh commented Apr 1, 2024

I am using WSL2 on Windows 11. I followed the steps in the README for this repo but was getting this error whenever I ran pnpm dev and clicked the localhost URL:

> $ pnpm astro dev                                              ⬡ 20.12.0 [±main ●]

> [email protected] astro /home/nads/personal-blog
> astro "dev"


 astro  v4.5.12 ready in 1026 ms

┃ Local    http://localhost:4321/
┃ Network  use --host to expose

17:10:58 watching for file changes...
17:11:02 [astro-icon] Loaded icons from fa6-brands, fa6-regular, fa6-solid, material-symbols
17:11:07 [200] / 3207ms
munmap_chunk(): invalid pointer
Aborted
 ELIFECYCLE  Command failed with exit code 134.

I found the fix for this issue here, which worked for me. You just have to add this to the package.json :

  "pnpm": {
		"overrides": {
			"vite-imagetools": "^6.2.7",
			"sharp": "^0.33.0"
		}
	}

Feel free to update the package.json with this if you want, or add a note in the README about this issue.
Thanks for your hard work!

@anonyoroshi
Copy link

anonyoroshi commented Apr 1, 2024

  "pnpm": {
		"overrides": {
			"vite-imagetools": "^6.2.7",
			"sharp": "^0.33.0"
		}
	}

that’s woked for me too thanks guys

@saicaca
Copy link
Owner

saicaca commented Apr 5, 2024

Thank you for providing the information, I will check it later.

@Akrista
Copy link

Akrista commented Apr 18, 2024

  "pnpm": {
		"overrides": {
			"vite-imagetools": "^6.2.7",
			"sharp": "^0.33.0"
		}
	}

that’s woked for me too thanks guys

That didn't work for me, in my case i just updated the packages pnpm update and it solved itself somehow

@silencieuxzero
Copy link

我也在Linux发行版上遇到了该问题,我试过Ubuntu,mint和debian,但他们都报错了

@woxiangfangjia
Copy link

在codespace上,这个问题可以复现

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

6 participants