-
Notifications
You must be signed in to change notification settings - Fork 152
CDN library any basic hello world examples, all fail to load #358
Copy link
Copy link
Open
Description
I've tried every version, even non-standalone combinations but I can't get any to load in a basic html world. I don't want node esm etc. Just basic.
Option (1)
<script src="https://cdn.jsdelivr.net/npm/three@0.134.0/build/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/troika-three-text@0.52.4/dist/troika-three-text.umd.min.js"></script>
The above throws:
Uncaught TypeError: Cannot read properties of undefined (reading 'defineWorkerModule')
Option (2):
<script src="https://cdn.jsdelivr.net/npm/three@0.134.0/build/three.min.js"></script>
<!-- Load all Troika dependencies in correct order -->
<script src="https://unpkg.com/troika-worker-utils@0.45.0/dist/troika-worker-utils.umd.js"></script>
<script src="https://unpkg.com/troika-three-utils@0.45.0/dist/troika-three-utils.umd.js"></script>
<script src="https://unpkg.com/troika-three-text@0.45.0/dist/troika-three-text.umd.js"></script>
Maybe it's obvious, but there's not combination that works from what I can tell.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels