Vue uses threejs to import the model and reports unexpected token < in json at position 0 error solution

When putting the model under the public directory and importing the gltf/glb file, public cannot be added in front of the path, otherwise the error shown in the title will be reported. The import method is as shown in the figure below:

Guess you like

Origin blog.csdn.net/qq_35408366/article/details/127111193