我正在使用jHipster生成代码。我的home.component.ts中有一个简单的import语句:
import { Account } from 'app/core/user/account.model'; //
///throws error - [ts] Cannot find module 'app/core/user/account.model'.
我的app / core / user目录中有一个account.model.ts文件,看起来像这样:
export class Account {
constructor(
public activated: boolean,
public authorities: string[],
public email: string,
public firstName: string,
public langKey: string,
public lastName: string,
public login: string,
public imageUrl: string
) {}
}
如果文件已存在,为什么会出现此错误?
(注意:Angular CLI:10.0.0 节点:12.18.1 操作系统:win32 x64 角度:10.0.0 jHipster:6.10.3)