运行报错,怎么解决呢?
运行报错(项目中使用了babel es6 转 es5)
Class constructor Model cannot be invoked without 'new'
let user = await models.User.create({
firstName:'123',
lastName:'lastName',
email:"email"
})也尝试用了 这种配置 还是报错

运行报错(项目中使用了babel es6 转 es5)
Class constructor Model cannot be invoked without 'new'
let user = await models.User.create({
firstName:'123',
lastName:'lastName',
email:"email"
})也尝试用了 这种配置 还是报错

2021-01-27
举报