Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

需要更新package.json文件中依赖的版本 #382

Closed
hezhengxu2018 opened this issue Jan 29, 2023 · 1 comment
Closed

需要更新package.json文件中依赖的版本 #382

hezhengxu2018 opened this issue Jan 29, 2023 · 1 comment

Comments

@hezhengxu2018
Copy link
Collaborator

3.2.1版本的@eggjs/tegg-orm-plugin并没有导出SingletonORM,需要安装最新的3.3.1版本,若使用package.json中指定的^3.2.1版本导致项目无法运行。报错内容如下:

TSError: ⨯ Unable to compile TypeScript:
app/repository/PackageRepository.ts:2:21 - error TS2307: Cannot find module '@eggjs/tegg-orm-plugin/lib/SingletonORM' or its corresponding type declarations.

2 import { Orm } from '@eggjs/tegg-orm-plugin/lib/SingletonORM';
@fengmk2
Copy link
Member

fengmk2 commented Jan 29, 2023

我们没有提交 lock file 的,使用 npm install 会安装到最新的 @eggjs/tegg-orm-plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants