How to Load GLTF Files From the Asset Folder in Vue

I want to load a GLTF file from the Vue Asset folder but I get an error that says:

You may need an appropriate loader to handle this file type.

The import works if i'm importing images, or JSON, so the problem is specifically with importing GLTF. How do I use the right loader to load a GLTF file?

import model from '../assets/scene.gltf';
- - Source
comments powered by Disqus