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

When I run using pnpm run start:dev #2

Open
Jeffr-K opened this issue Aug 4, 2022 · 1 comment
Open

When I run using pnpm run start:dev #2

Jeffr-K opened this issue Aug 4, 2022 · 1 comment

Comments

@Jeffr-K
Copy link

Jeffr-K commented Aug 4, 2022

I got this errors when I started server application.
Before start, I ran some command like npx prisma db push, npx prisma db generate.
How I resolve this issue? I think this is just my configuration problem, not application problem


prisma/seed.ts:2:10 - error TS2305: Module '"@prisma/client"' has no exported member 'PrismaClient'.

2 import { PrismaClient } from '@prisma/client';
           ~~~~~~~~~~~~

src/api/api.service.ts:3:10 - error TS2305: Module '"@prisma/client"' has no exported member 'Prisma'.

3 import { Prisma } from '@prisma/client';
           ~~~~~~

src/app_modules/prisma/inject-repository.decorator.ts:2:10 - error TS2305: Module '"@prisma/client"' has no exported member 'PrismaClient'.

2 import { PrismaClient } from '@prisma/client';
           ~~~~~~~~~~~~

src/app_modules/prisma/prisma.repository.ts:8:10 - error TS2305: Module '"@prisma/client"' has no exported member 'PrismaClient'.

8 import { PrismaClient } from '@prisma/client';
           ~~~~~~~~~~~~

src/app_modules/prisma/prisma.repository.ts:37:18 - error TS2339: Property '$on' does not exist on type 'PrismaRepository'.

37             this.$on(
                    ~~~

src/app_modules/prisma/prisma.repository.ts:52:20 - error TS2339: Property '$connect' does not exist on type 'PrismaRepository'.

52         await this.$connect();
                      ~~~~~~~~

src/app_modules/prisma/prisma.repository.ts:56:20 - error TS2339: Property '$disconnect' does not exist on type 'PrismaRepository'.

56         await this.$disconnect();
                      ~~~~~~~~~~~

src/article/article-select.service.ts:2:10 - error TS2305: Module '"@prisma/client"' has no exported member 'Prisma'.

2 import { Prisma } from '@prisma/client';
           ~~~~~~

src/article/article.repository.ts:9:26 - error TS2339: Property 'article' does not exist on type 'PrismaRepository'.

9     update = this.prisma.article.update;
                           ~~~~~~~

src/article/article.repository.ts:10:30 - error TS2339: Property 'article' does not exist on type 'PrismaRepository'.

10     findUnique = this.prisma.article.findUnique;
                                ~~~~~~~

src/article/article.repository.ts:11:28 - error TS2339: Property 'article' does not exist on type 'PrismaRepository'.

11     findMany = this.prisma.article.findMany;
                              ~~~~~~~

src/article/article.repository.ts:12:26 - error TS2339: Property 'article' does not exist on type 'PrismaRepository'.

12     create = this.prisma.article.create;
                            ~~~~~~~

src/article/article.repository.ts:13:25 - error TS2339: Property 'article' does not exist on type 'PrismaRepository'.

13     count = this.prisma.article.count;
                           ~~~~~~~

src/article/article.repository.ts:14:26 - error TS2339: Property 'article' does not exist on type 'PrismaRepository'.

14     delete = this.prisma.article.delete;
                            ~~~~~~~

src/article/article.service.ts:2:10 - error TS2305: Module '"@prisma/client"' has no exported member 'Article'.

2 import { Article, Prisma } from '@prisma/client';
           ~~~~~~~

src/article/article.service.ts:2:19 - error TS2305: Module '"@prisma/client"' has no exported member 'Prisma'.

2 import { Article, Prisma } from '@prisma/client';
                    ~~~~~~

src/article/author.guard.ts:3:10 - error TS2305: Module '"@prisma/client"' has no exported member 'Prisma'.

3 import { Prisma } from '@prisma/client';
           ~~~~~~

src/article/testing/index.ts:1:10 - error TS2305: Module '"@prisma/client"' has no exported member 'Prisma'.

1 import { Prisma } from '@prisma/client';
           ~~~~~~

src/comment/author.guard.ts:3:10 - error TS2305: Module '"@prisma/client"' has no exported member 'Prisma'.

3 import { Prisma } from '@prisma/client';
           ~~~~~~

src/comment/comment.service.ts:2:10 - error TS2305: Module '"@prisma/client"' has no exported member 'Prisma'.

2 import { Prisma } from '@prisma/client';
           ~~~~~~

src/comment/comment.service.ts:17:55 - error TS2339: Property 'comment' does not exist on type 'PrismaRepository'.

17         private readonly repository: PrismaRepository['comment'],
                                                         ~~~~~~~~~

src/tag/tag.service.ts:2:10 - error TS2305: Module '"@prisma/client"' has no exported member 'Prisma'.

2 import { Prisma } from '@prisma/client';
           ~~~~~~

src/tag/tag.service.ts:11:80 - error TS2339: Property 'tag' does not exist on type 'PrismaRepository'.

11         @InjectRepository('tag') private readonly repository: PrismaRepository['tag'],
                                                                                  ~~~~~

src/user/testing/index.ts:1:10 - error TS2305: Module '"@prisma/client"' has no exported member 'Prisma'.

1 import { Prisma } from '@prisma/client';
           ~~~~~~

src/user/user.repository.ts:2:10 - error TS2305: Module '"@prisma/client"' has no exported member 'User'.

2 import { User } from '@prisma/client';
           ~~~~

src/user/user.repository.ts:10:26 - error TS2339: Property 'user' does not exist on type 'PrismaRepository'.

10     update = this.prisma.user.update;
                            ~~~~

src/user/user.repository.ts:11:30 - error TS2339: Property 'user' does not exist on type 'PrismaRepository'.

11     findUnique = this.prisma.user.findUnique;
                                ~~~~

src/user/user.repository.ts:12:28 - error TS2339: Property 'user' does not exist on type 'PrismaRepository'.

12     findMany = this.prisma.user.findMany;
                              ~~~~

src/user/user.repository.ts:13:26 - error TS2339: Property 'user' does not exist on type 'PrismaRepository'.

13     create = this.prisma.user.create;
                            ~~~~

src/user/user.repository.ts:14:25 - error TS2339: Property 'user' does not exist on type 'PrismaRepository'.

14     count = this.prisma.user.count;
                           ~~~~

src/user/user.repository.ts:19:44 - error TS2339: Property '$queryRaw' does not exist on type 'PrismaRepository'.

19         const [result] = await this.prisma.$queryRaw<
                                              ~~~~~~~~~

src/user/user.service.ts:2:10 - error TS2305: Module '"@prisma/client"' has no exported member 'Prisma'.

2 import { Prisma } from '@prisma/client';
           ~~~~~~

[12:34:55 PM] Found 32 errors. Watching for file changes

@Jeffr-K
Copy link
Author

Jeffr-K commented Aug 4, 2022

I success to create some tables in schema.prisma. but I didn't run npm ci or pnpm ci.

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

1 participant