Hello, I started a new Needle Project in Blender, but when I want to start the preview server, I get an error message saying the vite.js module cannot be found. I’m on Needle Engine 3.51.4 with Node 20.9.0
Hello Dylan! Let’s address your issue step by step.
Regarding the Vite.js Module Not Found Error
Ensure Vite is Installed: It seems the project may be missing the Vite dependency. Run the following command in your terminal within the project directory:
npm install vite
Check package.json: Ensure that your package.json includes Vite as a dependency. If it’s not there, you can add it manually:
{
"dependencies": {
"vite": "latest",
// other dependencies
}
}
For the Glitch Deployment Issue
Project Structure: Make sure that your scene is properly referenced in the project structure. Check if your main scene file is being picked up in the Glitch project settings.
Glitch Logs: Inspect the logs in Glitch to check if there are any error messages related to loading your scene. This can provide clues if there’s an issue in the deployment process.
Assets Path: Ensure that all assets used in your scene are correctly linked and accessible in the Glitch environment.
Additional Suggestions
Make sure to use the correct version of Node.js as compatible with Needle Engine.
If you’re still encountering issues, please check if there are any error logs available and share those.
Feel free to ask if you need further assistance on any of these steps!
1 replies left - Get a PRO license for more AI replies. thread_0sxkF4Rl0bEgv3WhghKPt4cU Reply to this message to continue the conversation
So, I ran npm install vite, and got these error messages:
npm WARN deprecated npmlog@5.0.1: This package is no longer supported.
npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated are-we-there-yet@2.0.0: This package is no longer supported.
npm WARN deprecated gauge@3.0.2: This package is no longer supported.
up to date, audited 512 packages in 5s
61 packages are looking for funding
run npm fund for details
Hello Dylan! It looks like you encountered some warnings and vulnerabilities while installing Vite. Here’s how you can handle this:
Handling Deprecated Warnings
Ignore Deprecated Warnings: The warnings about deprecated packages generally do not affect the functionality of your project immediately. However, it’s good practice to keep your dependencies up-to-date. Consider updating those packages in the future.
Addressing Vulnerabilities
Run Audit Fix: You can attempt to fix the vulnerabilities by running:
npm audit fix
This command will automatically fix any vulnerabilities that can be resolved without breaking changes.
Review Manual Fixes: After running the above, you should check for vulnerabilities that need manual intervention. You can do this with:
npm audit
Review the output and decide if specific packages can be updated or replaced.
Next Steps
After resolving the warnings and vulnerabilities, try starting your Needle project again with:
npm run dev
Verify if the Vite error persists.
Let me know how it goes or if you encounter any new errors!
0 replies left - Get a PRO license for more AI replies. thread_0sxkF4Rl0bEgv3WhghKPt4cU Reply to this message to continue the conversation
Running npm audit or audit fix gives me this list of issues, but doesn’t resolve anything. Running npm start again still brings up the missing vine.js error.
npm audit report
got <11.8.5
Severity: moderate
Got allows a redirect to a UNIX socket - Got allows a redirect to a UNIX socket · CVE-2022-33987 · GitHub Advisory Database · GitHub
No fix available
node_modules/got
package-json <=6.5.0
Depends on vulnerable versions of got
node_modules/package-json
latest-version 0.2.0 - 5.1.0
Depends on vulnerable versions of package-json
node_modules/latest-version
update-notifier 0.2.0 - 5.1.0
Depends on vulnerable versions of latest-version
node_modules/update-notifier
msdf-bmfont-xml >=2.6.0
Depends on vulnerable versions of update-notifier
node_modules/msdf-bmfont-xml @needle-tools/helper *
Depends on vulnerable versions of msdf-bmfont-xml
Depends on vulnerable versions of request
node_modules/@needle-tools/helper
jpeg-js <=0.4.3
Severity: high
Infinite loop in jpeg-js - Infinite loop in jpeg-js · CVE-2022-25851 · GitHub Advisory Database · GitHub
Uncontrolled resource consumption in jpeg-js - Uncontrolled resource consumption in jpeg-js · CVE-2020-8175 · GitHub Advisory Database · GitHub
fix available via npm audit fix
node_modules/jpeg-js @jimp/jpeg <=0.12.0
Depends on vulnerable versions of jpeg-js
node_modules/@jimp/jpeg @jimp/types <=0.11.1-canary.891.908.0
Depends on vulnerable versions of @jimp/jpeg
node_modules/@jimp/types
jimp 0.3.6-alpha.5 - 0.21.4–canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
Depends on vulnerable versions of @jimp/custom
Depends on vulnerable versions of @jimp/types
node_modules/jimp
minimist <=0.2.3
Severity: critical
Prototype Pollution in minimist - Prototype Pollution in minimist · CVE-2020-7598 · GitHub Advisory Database · GitHub
Prototype Pollution in minimist - Prototype Pollution in minimist · CVE-2021-44906 · GitHub Advisory Database · GitHub
fix available via npm audit fix
node_modules/mkdirp/node_modules/minimist
mkdirp 0.4.1 - 0.5.1
Depends on vulnerable versions of minimist
node_modules/mkdirp @jimp/core <=0.21.4–canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
Depends on vulnerable versions of mkdirp
Depends on vulnerable versions of phin
node_modules/@jimp/core @jimp/custom <=0.21.4–canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
Depends on vulnerable versions of @jimp/core
node_modules/@jimp/custom
Hi DylanKay, I’m sorry but I can’t help you right now. You have reached the maximum number of replies. . Please try again later or get a PRO license for more AI help.
**
Okay, so the solution was in fact really simple: My project path was just too long. I placed the Needle Project two levels higher up in the hierarchy and now everything works fine =)
Hi DylanKay, I’m sorry but I can’t help you right now. You have reached the maximum number of replies. . Please try again later or get a PRO license for more AI help.
**