Skip to content

Class constructor Loader cannot be invoked without 'new' #25

@ingodahn

Description

@ingodahn

Calling a Vue component using ForceGraphVR I get the following error:

Uncaught TypeError: Class constructor Loader cannot be invoked without 'new'
    at new THREE.DRACOLoader (3d-force-graph-vr:2)
    at r.init (3d-force-graph-vr:83)
    at r.t.exports.System (3d-force-graph-vr:83)
    at new r (3d-force-graph-vr:83)
    at HTMLElement.value (3d-force-graph-vr:83)
    at HTMLElement.value (3d-force-graph-vr:83)
    at HTMLElement.value (3d-force-graph-vr:83)
    at HTMLElement.value (3d-force-graph-vr:83)
    at g (3d-force-graph-vr:2)
    at o (3d-force-graph-vr:2)

The main.html contains

<script src="https://unpkg.com/3d-force-graph-vr"></script>
  <script src="https://unpkg.com/3d-force-graph"></script> 
  <script src="https://unpkg.com/force-graph"></script>
  <script src="https://unpkg.com/d3-force"></script>
  <script src="https://unpkg.com/three"></script>

Components are loaded in this sequence with vr first. each component is called with its own data object

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions