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
Hi, nice smooth-scroll, really love it, but when I try to extends Parallax with smooth-scroll I've got this message, I don't really know why... but I think it's something with my webpack? or something,,
The error
Uncaught TypeError: Class constructor Smooth cannot be invoked without 'new'
var Parallax = function (_Smooth) {
_inherits(Parallax, _Smooth);
function Parallax(opt) {
_classCallCheck(this, Parallax);
<!----- This line --->
var _this = _possibleConstructorReturn(this, (Parallax.__proto__ || Object.getPrototypeOf(Parallax)).call(this, opt));
<!--- end of line --->
_this.createExtraBound();
_this.resizing = false;
_this.cache = null;
_this.dom.divs = Array.prototype.slice.call(opt.divs, 0);
return _this;
}
...
}
Hi, nice smooth-scroll, really love it, but when I try to extends Parallax with smooth-scroll I've got this message, I don't really know why... but I think it's something with my webpack? or something,,
The error
Uncaught TypeError: Class constructor Smooth cannot be invoked without 'new'
My webpack.config
How do i solve it?
The text was updated successfully, but these errors were encountered: