jsartoolkit5 icon indicating copy to clipboard operation
jsartoolkit5 copied to clipboard

JS Newb need help

Open 2ant opened this issue 1 year ago • 1 comments

How can I use an stl file instead of the sphere in the barcode example. ?

I downloaded the "STLLoader.js from the offical page but i get an error : Uncaught SyntaxError: Cannot use import statement outside a module (at STLLoader.js:1:1)

2ant avatar Feb 19 '24 19:02 2ant

hi @2ant i think because the three.js version included in the artoolkitx/jsartoolkit5 repository is older that the loader you downloaded, actually they've changed a lot. You may update the three.js version accordingly and i'm quite sure you will solve this issue. Probably you need to modify something in the examples...

kalwalt avatar Feb 20 '24 16:02 kalwalt