Hello,
I cannot load a file containing a class which extend another class defined in another file. I tried putting it together in lib directory as i would like to use them in the project but even if the name of the second alphabetically after. It doesn’t work. Then i tried to just put the second out of the lib folder but still when it comes to load the second class, it can’t access the first.
2 classes like :
HfrObject.js :
class HfrObject {
constructor(item) {
...
}
}
HfrMyCustom.js :
class HfrMyCustom extends HfrObject {
constructor(item) {
...
}
}
And HfrMyCustom is used in my react components.
the error is :
W20160303-13:53:48.134(1)? (STDERR) ReferenceError: HfrObject is not defined
W20160303-13:53:48.134(1)? (STDERR) at modules/Custom/lib/HfrMyCustom.js:1:28
Where should i put those files please?