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
Postinstall script fails with PNPM workspaces due to npm ERR! Cannot read properties of null (reading 'matches') #14944
Comments
works now magically Edit: it doesn't, the issue is still here |
Can you maybe create a new project, and generate the minimal setup that is required to reproduce this and put it on GitHub? That would be best for us to reproduce - and then potentially fix the issue. Thanks. |
sure @janpio , I'll try to do this in next few days approx. |
Same problem here. |
@whexy could you show the full code for workaround please? |
adding |
This worked for me |
This worked for me too |
Hey folks, we have just improved our |
@millsp Some feedback for you. Installed |
Bug description
When running
pnpm install
in a monorepo, with this structureI get this error:
my package
shared-utils
installsprisma
,web
depends onshared-utils
shared-utils
has a custompostinstall
script, which generates Prisma client from custom location(fromserver
package).This is
package.json
ofshared-utils
How to reproduce
pnpm install
Expected behavior
pnpm install
installs packages, and Prisma schema is generated automaticallyPrisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: