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

Yarn PNP Compatibility #191

Open
SagnikPradhan opened this issue Feb 13, 2022 · 4 comments
Open

Yarn PNP Compatibility #191

SagnikPradhan opened this issue Feb 13, 2022 · 4 comments
Labels
community/help-wanted Not our focus, but accepting PRs type/bug Something is not working the way it should

Comments

@SagnikPradhan
Copy link

Screenshot

image

Description

Prisma seemed to be stuck on generate command, running it with DEBUG="*" showed it had to do with floggy not mentioning chalk as a (peer, I assume) dependency.

Repro Steps/Link

I presume any project using yarn 2+ instead of npm and running yarn pnpify prisma generate

@SagnikPradhan SagnikPradhan added the type/bug Something is not working the way it should label Feb 13, 2022
@SagnikPradhan
Copy link
Author

SagnikPradhan commented Feb 13, 2022

Edit - Do this instead #191 (comment)

Temporary solution would be using node_modules linker instead with yarn config use nodeLinker node-modules (followed by yarn install OFC)

@janpio
Copy link

janpio commented Apr 13, 2022

Workaround if you are hitting this with pnpm: prisma/prisma#10291 (comment)

@SagnikPradhan
Copy link
Author

Aaah, right, forgot about this issue. You could do similar with yarn pnp too, using package extensions and declaring chalk (4.x) as a dependency of floggy.

@GrassHopper42
Copy link

GrassHopper42 commented May 13, 2022

I resolved this problem.

I just added chalk: ^4.1.2 to floggy dependency in yarn.lock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community/help-wanted Not our focus, but accepting PRs type/bug Something is not working the way it should
Projects
None yet
Development

No branches or pull requests

4 participants