threejs-dice icon indicating copy to clipboard operation
threejs-dice copied to clipboard

Cannot use import statement outside a module & DiceManager is not defined

Open fmgrafikdesign opened this issue 4 years ago • 2 comments

Hi, after cloning and installing the project, the examples don't work for me. I get the errors

Uncaught SyntaxError: Cannot use import statement outside a module and Uncaught ReferenceError: DiceManager is not defined.

I am not sure if I'm missing some transpiling here or anything, it would be much appreciated if you could help me out.

Best Regards!

fmgrafikdesign avatar Oct 28 '20 16:10 fmgrafikdesign

Hey,

Did you figure this out? I'm facing the same problem having just started to try using this code.

Thanks!

m1ket avatar Jan 04 '21 10:01 m1ket

The examples only work if you remove the import statements and remove the "export" key word from the library file

jadinm avatar Jan 08 '21 17:01 jadinm