I’m trying to run the sample Gaussian Splatting scene on my browser (on a Mac), but it’s not working. It worked previously (sometime ago), though. I’m using Needle Engine (4.3.1 · March 14, 2025) and Needle Engine Samples (0.20.1 · February 19, 2025).
Here’s the error I’m getting.
[vite] error while updating dependencies:
Error: ENOENT: no such file or directory, open '/Users/{UserName}/Dev/NeedleTest/NeedleTest/Needle/SampleScene/node_modules/.vite/deps_temp_0a108b20/_metadata.json'
at Object.open (node:internal/fs/sync:78:18)
at Object.openSync (node:fs:565:17)
at Object.writeFileSync (node:fs:2288:35)
at Object.commit (file:///Users/{UserName}/Dev/NeedleTest/NeedleTest/Needle/SampleScene/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:44267:18)
at commitProcessing (file:///Users/{UserName}/Dev/NeedleTest/NeedleTest/Needle/SampleScene/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:43699:40)
at runOptimizer (file:///Users/{UserName}/Dev/NeedleTest/NeedleTest/Needle/SampleScene/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:43737:23)
at onCrawlEnd (file:///Users/{UserName}/Dev/NeedleTest/NeedleTest/Needle/SampleScene/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:43934:17)
Any hints on how to solve it?
Thanks in advance!
Hi Ronchito,
The error you’re encountering indicates that a required file, _metadata.json, is missing in your project directory under the node_modules/.vite/deps_temp_* path. This could occur due to several reasons, and here are a few steps you can take to resolve it:
-
Delete node_modules and Reinstall:
This ensures that all dependencies are freshly installed, which can resolve issues with missing files.
-
Check for Incompatible Packages:
- Ensure that all your packages, especially Vite and Needle Engine, are compatible with each other. Verify the relevant versions in your
package.json file.
-
Update Vite Configuration:
-
Node.js Version:
- Ensure that you’re using a version of Node.js compatible with your project. Sometimes, using the latest Node.js may create compatibility issues. Consider using Node.js version 16 or 18, which are generally stable versions for most projects.
-
Running on Correct Architecture:
- Since you’re on a Mac, ensure that you’re running the correct version of Node.js for your architecture (ARM vs x86). You might need the Apple Silicon version if you’re using an M1/M2 chip.
-
Restart the Local Development Server:
- After making changes, ensure to restart your local server to apply the updates.
If the problem persists after trying these steps, you could further explore your vite configuration or consult the Needle Engine forums for additional support.
Let me know if you need more help!
1 replies left - Get a PRO license for more AI replies.
thread_ONNkTP8VV7RFtARqdR4YmAKj
Reply to this message to continue the conversation
It worked now - not sure what made it work though. Maybe the terminal commands suggested above, maybe the package updates.
When I try to run my gaussian splatts scene in the web, it yields the following error:
chruby: unknown Ruby: ruby-3.1.2
cd "/Users/{CensoredPath}/Needle/MiniPortal" && `which npm` start
(base) {userName}@clt-mob-t-6375 ~ % cd "/Users/{CensoredPath}/Needle/MiniPortal" && `which npm` start
> my-needle-engine-project@1.0.0 start
> vite --host
✘ [ERROR] Cannot start service: Host version "0.17.19" does not match binary version "0.25.1"
How to proceed from here? Thanks!
Hi Ronchito,
The error message you encountered indicates a version mismatch between the Vite host and the binary version you are trying to use. Specifically, the host version is 0.17.19, while the binary version is 0.25.1. Here’s how you can resolve this issue:
-
Update Vite:
- Update Vite in your project to ensure that you’re using a compatible version. In your terminal, run the following command:
npm install vite@latest
-
Check the package.json:
-
Delete and Reinstall Node Modules:
-
Check Global Installation:
- If you have Vite installed globally, ensure that it is updated to the same version. Check your global installation with:
npm list -g vite
- If it’s outdated, update with:
npm install -g vite
-
Compatibility Check:
- Confirm that the versions of Needle Engine and any other related dependencies are compatible with each other. Browsing the documentation or changelogs might provide insights into compatibility requirements.
-
Consult Documentation/Community:
- If you continue to have issues, consult the official documentation or community forums for Needle Engine or Vite for any additional steps specific to your setup.
After making these changes, try starting your project again and monitor whether the issue persists.
Let me know if you need any more assistance!
1 replies left - Get a PRO license for more AI replies.
thread_ONNkTP8VV7RFtARqdR4YmAKj
Reply to this message to continue the conversation
Amazing. Update Vite fixed it. Thanks BOT!
You’re welcome, Ronchito! I’m glad to hear that updating Vite resolved the issue. If you have any more questions or need further assistance as you continue working with Needle Engine or any other project, feel free to ask. Happy coding!
1 replies left - Get a PRO license for more AI replies.
thread_ONNkTP8VV7RFtARqdR4YmAKj
Reply to this message to continue the conversation