我在质量点API的angular2项目中使用Scott地图,当我运行时
npm run build:prod
发生错误,以下是相关代码和异常(添加:npm start
命令无问题)
/**
* Custom grouping rendering engine, for example, only function similar to
PointSimplifier.Render.Canvas.GroupStyleRender
* @param {PointSimplifier} pointSimplifierIns The associated
PointSimplifier instance
* @param {Object} opts configuration
*/
function MyCanvasRender(pointSimplifierIns, opts) {
// Direct call the superclass constructor
MyCanvasRender.__super__.constructor.apply(this, arguments);
}
错误信息:
[at-loader] Checking started in a separate process...
[at-loader]检查完成了6个错误 保释模式错误:[at-loader] ./src/app/pages/map/massive/massive.component.ts:39:24 TS2339:属性'超级'在类型'上不存在(pointSimplifierIns:any,opts:any)=>无效”。