Skip to content
Discussion options

You must be logged in to vote

Hi, you are using wrong path for your files. like currently you are using
/src → /assets → headphone.glb
this will not work.
Your path should be /public → /assets → headphone.glb
For this purpose, you have to make public folder (if it's not there) in the same directory as src (in root directory).
Vuejs will pick up your files from there. you can access your files like this '..assets/headphone.glb' , 'assets/headphone.glb' , '../..assets/headphone.glb' depending upon your component structure.
Note: use assets folder of 'public' not of 'src' for your files.

Edited (15-07-2021):
As suggested from the @delacrixmorgan , if you are working with Nuxt then your assets should be in the static fold…

Replies: 3 comments 15 replies

Comment options

You must be logged in to vote
2 replies
@elalish
Comment options

@nshutijean
Comment options

Comment options

You must be logged in to vote
1 reply
@nshutijean
Comment options

Answer selected by nshutijean
Comment options

You must be logged in to vote
12 replies
@delacrixmorgan
Comment options

@echtme
Comment options

@elalish
Comment options

@echtme
Comment options

@iglimanaj
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants