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

Hardcoded path does not exist #747

Closed
liftyourgame opened this issue Jan 17, 2023 · 2 comments
Closed

Hardcoded path does not exist #747

liftyourgame opened this issue Jan 17, 2023 · 2 comments

Comments

@liftyourgame
Copy link

Getting this error:

TS2307: Cannot find module '/Users/michaelhayes/code/prismaday-talk/node_modules/@prisma/client' or its corresponding type declarations.

generated.ts has:

import type { Prisma, User, Post, Comment } from "/Users/michaelhayes/code/prismaday-talk/node_modules/@prisma/client";

Why the hard coded path michaelhayes?

@hayes
Copy link
Owner

hayes commented Jan 17, 2023

This file should never have been checked in, I think what happened was this got created while I had Pothos linked into another project while trying to reproduce another issue, and didn't notice this file got added. Running prisma generate should overwrite this file with a generated file based on your schema. This file should contain a message letting you know that you need to run the generator. I'll try to update it today

@hayes
Copy link
Owner

hayes commented Jan 17, 2023

this should be fixed in the latest release!

@hayes hayes closed this as completed Jan 17, 2023
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