You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Tour extends Evented {
/** ... **/
constructor(options) {
var this$1 = this; // <---- This is where the exception is raised
if (options === void 0) {
options = {};
}
super(options); // <--- complains this should have already been called?
When I download and included the file from the releases page manually in my app, it doesn't raise the exception. I'm a little confused as to why it works that way but not when I use the version from npm?
The text was updated successfully, but these errors were encountered:
Well, the error refers to the line I have pointed out in the code above. super is called after referencing this, which is not allowed in a derived class constructor. All of the information that led to the error is contained in the code snippet above.
I don't know why it worked when I downloaded the file from the releases page manually (is it different than the npm version?), but the error is based on hard JavaScript rules governing inheritance.
Sorry that I don't have time to go back and forth on this issue. I have a whole lot piled on me right now, and I've moved on from this project since I filed the report. I'm surprised no one else has commented on this issue.
I've installed shepherd.js as a node module using npm (version 10.0.1), and I'm getting this message when attempting to create a tour:
Uncaught ReferenceError: must call super constructor before using 'this' in derived class constructor
My code is the following:
import Shepherd from 'shepherd.js';
The debugger points to this line of code:
When I download and included the file from the releases page manually in my app, it doesn't raise the exception. I'm a little confused as to why it works that way but not when I use the version from npm?
The text was updated successfully, but these errors were encountered: