-
Notifications
You must be signed in to change notification settings - Fork 199
Uncaught ReferenceError: THREE is not defined #2384
Comments
EDIT: I've tried to replace the includes by these, like in the harp.gl tutorial:
and now get these errors:
|
@badde-media , now at least your issue is with three.js, see: https://stackoverflow.com/questions/54232528/error-creating-webgl-context-three-js-chrome |
I know I need a new computer 🙈 thanks for the hint. Anyway, it does work on other websites, why is that so? |
@badde-media , do the other three.js examples work? See: https://threejs.org/examples/#webgl_animation_keyframes |
Yes, other examples work as expected. In Firefox and Google Chrome Canary. |
Even harp.gl works on other websites. I don't know why not on mine. Maybe they're working with an older version of three.js? |
By the way, installation of the example project with method 1 also ended with an error, and no functioning installation. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the bug
I have included harp.gl by adding it to the import map:
and then adding this line to my includes:
and got the following error messages:
To Reproduce
Steps to reproduce the behavior:
1.Load page
2. nothing happens, black screen
Expected behavior
The website should appear with a map on the selected canvas element (in this case, a CanvasTexture that's put upon a 3d mesh of a map)
Desktop (please complete the following information):
Additional context
Maybe it's not a bug but an error in my way to include it? I don't think so, but please let me know if it is.
Three.js has recently changed its way to be included. Maybe Harp.GL did not adapt to this yet?
The text was updated successfully, but these errors were encountered: