Hi im trying to load a 3d model from blender with gltf but i get this error
cojitambo.vue?f87e:55 SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
at GLTFLoader.parse (GLTFLoader.js?34ad:281)
at Object.eval [as onLoad] (GLTFLoader.js?34ad:174)
at XMLHttpRequest.eval (three.module.js?5a89:36749)
all this im trying to build with nuxt js any idea how to fix this ?
here is the code if needed
nuxt gives me the
This page could not be found but i can see the file on Vscode as json
according to nuxt i should put the model in the static page right ?
That’s a question for nuxt docs or community - from three’s side, the error you shared in the first post in most cases means that the model request returns an error (ie. XML error page.)
Ok so the model file works on blender and the only error i get is
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at GLTFLoader.parse (GLTFLoader.js?34ad:281)
at Object.eval [as onLoad] (GLTFLoader.js?34ad:174)
at XMLHttpRequest.eval (three.module.js?5a89:36749)
checking the network it says