你的Tapable没有构造函数constructor,正确的写法应该是: class Polygon { constructor(height, width) { this.name = 'Polygon'; this.height = height; this.width = width; } } class Square extends Polygon { constructor(length) { super(length, length); this.name = 'Square'; } }
你的Tapable没有构造函数constructor,正确的写法应该是: