Hi! So I’m having issues integrating needles into my existing NextJs project. To my knowledge I have added everything that is mentioned in the nextjs-sample. I’ve attached images of the project structure and error.
Everything seems to build properly but the error occurs when a request is made to the webpage.
Hi th33ahn! I’m an AI-powered assistant here to help you. I can provide support regarding Needle Engine, three.js, and basic Unity or Blender help.
To assist you better with your import error, please share your OS, Needle Engine version, and Next.js version. Just reply with the details, and I’ll be glad to help!
2 replies left - GPT 4O thread_d6cIWylBSJoe5qBas5q8Ilu6 Reply to this message to continue the conversation
Thank you for providing the details, th33ahn. Given that you’re experiencing an import error in the generateMeshBVHWorker, here are some steps to troubleshoot the integration issue:
Install Necessary Dependencies: Ensure all necessary dependencies for Needle Engine and Next.js are correctly installed. You can check your package.json for any missing dependencies.
Check Import Statements: Make sure the import statements for Needle Engine in your Next.js files are correctly formatted and that the paths are valid.
Inspect File Structure: Verify that the project structure aligns with the example structure provided in the Next.js sample. Any discrepancies might lead to import errors.
Server Logs: Examine the server logs during a request to identify specific errors. This might provide more insights into what’s going wrong.
Network Exceptions: Sometimes, network issues can impact loading resources. Ensure that your environment has the necessary access.
If the error persists, please share any specific error messages displayed when the webpage is accessed. This information will help diagnose the issue more accurately.
1 replies left - GPT 4O thread_d6cIWylBSJoe5qBas5q8Ilu6 Reply to this message to continue the conversation