KhronosGroup / glTF-Sample-Viewer

Physically-Based Rendering in glTF 2.0 using WebGL
Apache License 2.0
1.29k stars 238 forks source link

Web app not rendering correctly #525

Closed abbaswasim closed 8 months ago

abbaswasim commented 11 months ago

Following the instructions to run the web app with. npm run dev I am not getting the correct output and I am seeing a javascript error in the console saying;

Uncaught TypeError: Failed to resolve module specifier "buefy". Relative references must start with either "/", "./", or "../".

I am not knowledgeable to work out what is going on but I think https://github.com/KhronosGroup/glTF-Sample-Viewer/blob/831cf2b03a64ad149f8f18f6d56e512a08ad0737/app_web/src/ui/ui.js#L5 is the culprit or thats unrelated. Of course trying out different combinations of import Buefy from './buefy'; import Buefy from '../../node_modules/buefy'; didn't help.

Here is the broken output.

Screenshot 2024-01-03 at 13 03 14

I am using Intel iMac Pro with Ventura 13.6.1

jim-ec commented 9 months ago

Can you verify that you installed the required dependencies using npm i within the app_web folder?

abbaswasim commented 9 months ago

I have installed yes, how do I verify it?

jim-ec commented 8 months ago

Unfortunately we are not able to reproduce your issue. Can you please do a clean clone of the entire repository, then cd into app_web and run npm i and npm run build and paste the entire output (anonymized) here?

wasimabbas-arm commented 8 months ago

I can't reproduce it anymore either. Thanks for your help. It displays correctly now. Anyways attached is the output of what yourasked.

Screenshot 2024-03-19 at 14 49 33
jim-ec commented 8 months ago

Glad it is working now. I am going to close the issue.