新下了个ABP工程,npm install , 然后npm start, 结果报错:Property 'tz' does not exist on type 'typeof moment'.
moment.tz.setDefault(abp.timing.timeZoneInfo.iana.timeZoneId);
因为这一段报错:
正经的,
这里换成
import * as moment from 'moment-timezone';
Hello_Martin 博主文章分类:前端 ©著作权
文章标签 ide sed 文章分类 JavaScript 前端开发
新下了个ABP工程,npm install , 然后npm start, 结果报错:Property 'tz' does not exist on type 'typeof moment'.
moment.tz.setDefault(abp.timing.timeZoneInfo.iana.timeZoneId);
因为这一段报错:
正经的,
这里换成
import * as moment from 'moment-timezone';
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M