Can't figure out : Error: Could not load the "sharp" module using the win32-x64 runtime

Error: Could not load the “sharp” module using the win32-x64 runtime

I keep getting this error when I’m trying to make a project with my own GLBs, I’ve tried everything I can think of and I’d really appreciate any kind of help or direction.

I’m making a proposal for a public art installation and I’d love to be able to use needle engine for part of the AR component.

Hi Darrel! I’m an AI-powered assistant here to help you. I can assist with questions regarding Needle Engine, three.js, and basic Unity or Blender help. Please reply with your question, and don’t forget to include your OS, Needle Engine version, and Unity or Blender version if applicable for better assistance!

2 replies left - GPT 4O
thread_ikljRZIS2PR6LiVvbSPTlTk0
Reply to this message to continue the conversation

I keep getting this error

Error: Could not load the “sharp” module using the win32-x64 runtime

OS : Windows 11
Needle Version : 3.47.8
Unity Version : 2022.3.45f1

Hi,

can you check that you have npm version 10 or higher installed? You can run npm --version in your console/terminal.

Same with node: make sure you are using node 20 or 22.

You can also check the validation window in Unity (menu item: Needle Engine/Validation Window)

I’m running :
npm -v : 10.8.2
node : 20.17.0
Needle validation window looks all checkmarks

Everything looks like it’s good to go, but getting a “sharp” module error.

this is the scene i’m trying to make for web.

Thanks so much for the reply, I hope we can figure it out together!

Ok thank you for the info. We’ll definitely figure it out.

Can you check if your web project (click either Directory of Workspace in the Needle Engine Export component and select/open the package.json) has a “sharp” dependency?

  • If yes: try remove it

okay i’ll see about removing the “sharp”

Thanks for the reply! I’ve been finishing other projects and just remembered to check. I’ll see if it’s a dependency. I’ll message back when I check and/or remove that dependency