This error usually appears if the HTTP request for the glTF asset returns a HTML site. I suggest you open the asset URL directly in your browser and check the content.
If you’re loading a GLTF model, then your response should like like the response in my screenshot.
If you’re loading a font, it should obviously not look like my screenshot since it’s a different file type than GLB
If the response looks like an HTML page, that means you need to configure your server properly, and if you want help you should provide information on how you are serving your files as there are many possible reasons for it not working.
Thanks! My page really is a html page.I use parcel-bundler.This is my code,file path,package.json,developer console response,and error message.
The code in main.js.