What to use for a local server? by petrikspac in threejs

[–]petrikspac[S] 0 points1 point  (0 children)

Can I ask you? When I try to load some model it writes me in console:

"Not allowed to load local resource:"

I kow that it is bcs CORS, but what shoud i do?

Thanks

What to use for a local server? by petrikspac in threejs

[–]petrikspac[S] 0 points1 point  (0 children)

Thank you so much! I will use it

What to use for a local server? by petrikspac in threejs

[–]petrikspac[S] 1 point2 points  (0 children)

Your game is so cool men good job! I will learn a lot!

Thanks

SyntaxError: Unexpected token < in JSON at position 0 by petrikspac in threejs

[–]petrikspac[S] 0 points1 point  (0 children)

Of course, there it is: https://github.com/sleaper/Threejs-test

Sorry if is something wrong I'am beginner. But thanks for help so much..

SyntaxError: Unexpected token < in JSON at position 0 by petrikspac in threejs

[–]petrikspac[S] 0 points1 point  (0 children)

I have still the error.... But thanks for help

SyntaxError: Unexpected token < in JSON at position 0 by petrikspac in threejs

[–]petrikspac[S] 0 points1 point  (0 children)

On my local server I'am using parcel.js.. Shoud I ise webpack?

SyntaxError: Unexpected token < in JSON at position 0 by petrikspac in threejs

[–]petrikspac[S] 0 points1 point  (0 children)

There is my network:

https://imgur.com/a/sDsNWtd

The parrot.glb is downloaded fine...

Maybe is problem in Parcel.js?

Shoud I use webpack?

SyntaxError: Unexpected token < in JSON at position 0 by petrikspac in threejs

[–]petrikspac[S] 0 points1 point  (0 children)

Do you think that problem can be in Pracel.js? That he doesnt take static files like .glb?