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

Could not load the "sharp" module using the darwin-x64 runtime #114

Open
yusongh opened this issue Feb 2, 2024 · 5 comments
Open

Could not load the "sharp" module using the darwin-x64 runtime #114

yusongh opened this issue Feb 2, 2024 · 5 comments

Comments

@yusongh
Copy link

yusongh commented Feb 2, 2024

Steps to reproduce

  1. Install imagemin
  2. Run packaging

What is expected?

No error reported

What is actually happening?

image

System Info

Intel Mac OS 14.1
Node v18.12.1

Any additional comments?

No response

@ErKeLost
Copy link
Member

ErKeLost commented Feb 3, 2024

Follow the prompts to install it, which is not under the control of the plugin. Later, i may consider using sharp and squoosh as development dependencies.

@yusongh
Copy link
Author

yusongh commented Feb 3, 2024

按照提示安装即可,不受插件控制。稍后,我可能会考虑使用 Sharp 和 Scoosh 作为开发依赖项。

image

When used in vitepress, the above error message will appear

@ErKeLost
Copy link
Member

ErKeLost commented Feb 3, 2024

Can you provide a repo that can be reproduced? I'll try it.

@yusongh
Copy link
Author

yusongh commented Feb 4, 2024

Can you provide a repo that can be reproduced? I'll try it.

image

reproduced repo: https://github.com/yusongh/vitepress-imagemin-problem-demo

I did not reproduce the error(#114 (comment)) mentioned above in the warehouse, but I reproduced another error. I suspect it is the same type of problem

@ErKeLost
Copy link
Member

ErKeLost commented Feb 4, 2024

ok i will try it

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

2 participants