Importing error

Hello, I’m having an issue when I am importing my scene.

I get the following error:

failed loading …/…/…/public/assets/mainScene.glb fetch for “http://localhost:3000/public/assets/mainScene.glb” responded with 404: Not Found

My other components have no issue accessing assets within this folder so I’m wondering if there’s something I’m doing incorrectly.

For info, I’m using Next.js 13 with the App Router. I’ve added some photo’s of how I am importing the scene.

Original Post on Discord

by user 426066705643732993

I think the path should be just assets/mainScene.glb and not ../../public/assets...

Feeling stupid! Thanks so much!

by user 426066705643732993

No problem! happy to help