Hi,
I was able to take the development build but the production build keeps getting the following error.
error during build:
Error: [needle-buildpipeline] - Build pipeline failed. Check the logs for more information.
at file:///C:/unityExp/Project/Needle/frontend_ui_src/node_modules/@needle-tools/engine/plugins/vite/build-pipeline.js:152:35
at
at process.processTicksAndRejections (node:internal/process/task_queues:105:5).
Needle version: 4.3.2
Hi Ashok,
The error message you are encountering during the production build ([needle-buildpipeline] - Build pipeline failed
) may have various underlying causes. Here are some steps to troubleshoot and resolve the issue:
-
Check Logs: You should inspect the build logs carefully, as they may provide more detailed error messages that can pinpoint the actual problem occurring during the production build.
-
Dependencies and Scripts: Ensure that your
package.json
scripts and dependencies are properly set up. Looking at your project, the production build command inpackage.json
is set as:"build:production": "npm run build:dev && npm run gltf:transform"
Make sure that the
gltf:transform
is defined and working correctly. -
Toktx Installation: For production builds, ensure that you have
toktx
installed for texture compression. If you haven’t done so yet, you can download it from the KTX Software releases page. Confirm that it is in your system’s PATH and restart your machine if necessary (see deployment). -
NPM Version: Ensure you are using a compatible version of Node.js and NPM as required by Needle Engine. As referenced, Needle Engine requires NPM 10 or a compatible version (see releases). Verify this by running:
npm -v
-
Clear Cache: Sometimes, issues can arise from cached files. Run the following command to clear any previous caches:
npx --yes @needle-tools/gltf-build-pipeline clear-caches
-
Pre-build Validation: The build process validates your project setup. Ensure there are no compilation errors or issues with your scenes that could prevent the build from succeeding. Check the console for any pre-build failure messages (see the documentation).
-
Commands Consistency: Ensure that your command-line build operations and commands within scripts in
package.json
are consistent with the latest requirements set by Needle Engine.
If you continue to face issues after checking the steps above, please provide detailed build logs for further investigation.
Let me know how it goes!
1 replies left - Get a PRO license for more AI replies.
thread_hJTD9SKqrtEVdKfit2cfHuou
Reply to this message to continue the conversation
Hi, can you try updating to the latest beta?
Also can you check and provide any additional logs? Should be above logged this message, make sure to check all log types (info, warning, error)