king2088 / vue-3d-loader

VueJS and threeJS 3d viewer plugin
https://king2088.github.io/vue-3d-loader-docs
MIT License
226 stars 38 forks source link

Loading Model Issues #23

Closed LukeRawlo closed 1 year ago

LukeRawlo commented 1 year ago

Hello,

I am using this loader to load an obj file, however it is throwing multiple errors when i use exactly what the example shows. I'm doing a non-global import to a vue file,

image

*the eslint comments are to disable unused imports

Nothing loads, and I get these 4 errors in my console. I've looked everywhere for a cause, however I've found nothing.

The obj file is in my public folder, nested in a models folder.

Thanks :)

image

king2088 commented 1 year ago

Hello,

I am using this loader to load an obj file, however it is throwing multiple errors when i use exactly what the example shows. I'm doing a non-global import to a vue file,

image

*the eslint comments are to disable unused imports

Nothing loads, and I get these 4 errors in my console. I've looked everywhere for a cause, however I've found nothing.

The obj file is in my public folder, nested in a models folder.

Thanks :)

image

If you use vue2.x, please install vue-3d-loader@1.2.12, if you use vue3, please install 2.x.x. I saw this error is in create vue-3d-loader html element. Maybe your vue version and plug-in version are incorrect.

LukeRawlo commented 1 year ago

Hi Tony,

Thank you so much. You are a life saver! Works perfectly, greatly appreciated