Jhipster TS2440:导入声明与本地声明'I冲突

时间:2020-04-19 23:42:48

标签: jhipster

在jhipster中启动服务器时出现以下错误:

... / webapp / app / shared / model / category-model.model.ts(1,10)中的错误: TS2440:导入声明与“ ICategoryModel”的本地声明冲突。 [INFO] npm ERR!代码ELIFECYCLE [INFO] npm ERR!错误2

thread 1 is trying to acquire lock 1
lock1 acquired by thread 1
thread 2 is trying to acquire lock 2
lock2 acquired by thread 2
thread 1 is trying to release lock 2
thread 2 is trying to release lock 1
(Program completes)

1 个答案:

答案 0 :(得分:1)

似乎与https://github.com/jhipster/generator-jhipster/issues/11549相同,已在master分支上修复,并将成为下一版本6.9.0的一部分

同时,您只需从category-model.model.ts删除导入语句