Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
33 views

How to share packages between apps in pnpm monorepo

I'm extremley confused with how monorepos work, I want to build an app with next.js and sanity studio so i have 2 folders next studio both uses some similar packages like react react-dom @types/react @...
Taste of Leaving's user avatar
0 votes
1 answer
102 views

TypeScript errors when using shared package from pnpm workspace in Google Cloud Functions

Problem I have a pnpm workspace monorepo with the following structure: A shared tsconfig package A shared database package A NextJS app A new google cloud function app While the shared database ...
atralvarez's user avatar
0 votes
0 answers
39 views

Facing issue using PNPM workspace with turborepo

when running pnpm install it stucks or fails at installing script specifically sharp and pnpm dev or any other similar commmand is also not working simply just show what that command is about in ...
Parikshit Agarwal's user avatar
1 vote
0 answers
93 views

"Error: packages field is not an array when using pnpm-workspace.yaml in a monorepo setup"

I'm working with a PNPM monorepo setup, and everything was working fine when I was using pnpm.yaml, but after switching to pnpm-workspace.yaml, I’m encountering the following error: ERROR  packages ...
Naga mani kanta manam's user avatar
0 votes
0 answers
49 views

Cannot find module '[email protected]' by pnpm

I tried to migrate an old project from NPM to PNPM, but after running pnpm install, when I try to start the project, I encounter a MODULE_NOT_FOUND error. How can I fix this issue? node:internal/...
J. Hu's user avatar
  • 53
1 vote
0 answers
251 views

Error pnpm: Symlink path is the same as the target path (Windows)

I've been searching for days how to fix this issue but havent managed to find a solution. The problem: I have to repos: Main Repo and side Repo. I need to use a package from side repo locally inside ...
Luis Guareschi's user avatar
0 votes
1 answer
466 views

Why is the node_modules link for my pnpm workspace sometimes the local package's root and sometime its dist folder?

I'm having a frustrating problem that I'd like to better understand. I've just switched from yarn classic to pnpm. Sometimes my build fails because one of my local package's node_modules link points ...
Novaterata's user avatar
  • 4,847
0 votes
1 answer
87 views

Is there a list of known needed public-host-pattern for pnpm?

So, the default public-host-pattern for pnpm is [*eslint*, *prettier*], but I just discovered that I needed to add @types* as well, and I'm currently tracking down an aws issue that will likely result ...
Novaterata's user avatar
  • 4,847
0 votes
1 answer
2k views

npm error code EUNSUPPORTEDPROTOCOL npm error Unsupported URL Type "workspace:": workspace:*

The error is coming because the project is setup to use pnpm. But what I want is to display a suitable message to the user to let them know that they have to use pnpm instead of npm or yarn. I have ...
ROHIT SOMVANSHI's user avatar
0 votes
1 answer
125 views

Docker build doesn't retrieve a next module

I'm trying to make a Dockerfile to generate an image of my front-end. My front-end contains several workspaces. Here is my Dockerfile : Dockerfile.prod FROM node:18-alpine WORKDIR /app RUN npm i -g ...
Dave's user avatar
  • 3
11 votes
2 answers
2k views

`node_modules` is present warning with pnpm

When I run pnpm install in my project I get a warning: `node_modules` is present. Lockfile only installation will make it out-of-date What will be out of date. node_modules the lockfile? Should I be ...
Ethan's user avatar
  • 1,783
0 votes
1 answer
580 views

How to manage package version in pnpm workspace?

I'm using pnpm workspace, and I've added an typescript workspace and installed typescript 5.4.2 for example. I've also added this typescript workspace as a dependency in another workspace. How can I ...
jhE's user avatar
  • 3
0 votes
1 answer
271 views

PNPM-NX | Failed to create a workspace

Failed NX I am creating a NX monorepo with PNPM, and getting an issue as shown in the image How did I create a workspace? I did with this script pnpx create-nx-workspace nest-workspace1 --preset=nest ...
Kishor KC's user avatar
0 votes
0 answers
318 views

How to run a postinstall script after the package.json file is written?

I currently use pnpm as package manager. I'm maintaining a monorepo (around 30 packages) that has a postinstall script at the monorepo root. This script will run a local custom script that should ...
Steve B's user avatar
  • 37.8k
2 votes
1 answer
859 views

Efficiently Managing Shared Dependencies and Binaries in a pnpm Monorepo Workspace

I'm working on a monorepo setup using pnpm workspaces to manage multiple related projects. My goal is to efficiently manage and share dependencies across these projects without duplicating them in ...
keogh's user avatar
  • 520

15 30 50 per page
1
2 3 4 5