question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Right-hand side of 'instanceof' is not callable

See original GitHub issue

Hello,

I’m playing with geopose sample and trying to integrate some Cesium sample like this one.

So, I tried to replace the highlighted code snippet from geopose sample for…

function computeCircle(radius) {
    var positions = [];
    for (var i = 0; i < 360; i++) {
        var radians = CesiumMath.toRadians(i);
        positions.push(new Cesium.Cartesian2(radius * Math.cos(radians), radius * Math.sin(radians)));
    }
    return positions;
}

var gatechGeoEntity = new Cesium.Entity({
    name : 'Red tube with rounded corners',
    polylineVolume : {
        positions : Cartesian3.fromDegreesArray([-85.0, 32.0,
                                                        -85.0, 36.0,
                                                        -89.0, 36.0]),
        shape : computeCircle(100.0),
	orientation: Cesium.Quaternion.IDENTITY
    }
});

…and am receiving the following error in browser console:

Right-hand side of 'instanceof' is not callable, when instantiating the modified gatechGeoEntity.

Any ideas on how to proceed?

Thanks

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
carrbrpoacommented, Mar 16, 2017

@blairmacintyre,

We have focused on using three.js or aframe.io for content; it’s pretty trivial to show polygons or polylines.

Something like these samples?

0reactions
blairmacintyrecommented, Mar 16, 2017

(What do you think about a gitter channel?)

We tried it at one point; we use slack now. Go to argonjs.io, and look for the link to get an auto-invite to the ArgonJS slack.

I’ve also just created a discourse server at community.argonjs.io, to use for these kinds of discussions. I just set this up, haven’t linked it with the website yet!

Or you could post to Stack Overflow and use the argon tag, for specific coding questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Right-hand side of instanceof is not callable - Stack Overflow
instanceof is used to see if an object is an instance of a specific constructor (ex: banned instanceof Array ). If you just...
Read more >
TypeError: invalid 'instanceof' operand 'x' - JavaScript | MDN
The JavaScript exception "invalid 'instanceof' operand" occurs when the right-hand side operands of the instanceof operator isn't used with ...
Read more >
"Right-hand side of 'instanceof' is not callable" - JavaScript SDK
I'm getting the following error whenever I create a new instance with new Parse.Query(Icons);: Uncaught (in promise) TypeError: Right-hand ...
Read more >
Right-hand side of 'instanceof' is not callable - Moralis Forum
I am getting a following error: TypeError: Right-hand side of 'instanceof' is not callable. My deps: "dependencies": { "moralis": "1.11.0", "next": "12.1.5" ...
Read more >
Error: Right-hand side of 'instanceof' is not callable | Vue Forums
1. Share the code snippet of ListView component. · 2. Whether you have rendered the ListView component inside any other components. · 3....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found