554 questions
1
vote
1
answer
30
views
TypeScript cannot resolve "@repo/typescript-config/backends.json" in Turborepo + PNPM workspace
I’m using Turborepo with PNPM workspaces, and I have a shared TypeScript config package located at:
packages/typescript-config/
backends.json
package.json
Inside apps/http-server/tsconfig.json I ...
1
vote
0
answers
67
views
DNS Resolution Issue: `nslookup` Works But `curl` Fails
What I Want to Do
Install ESLint and related dependencies using pnpm in my TypeScript React frontend project (part of a Wails Go + TypeScript hybrid application).
What I Did
Ran pnpm add --save-dev ...
0
votes
0
answers
65
views
AWS Code Deploy command not found for pm2 and pnpm
I'm deploying Node.js based server on EC2 via code deploy.
I'm using pnpm and pm2, when execution of shell script from appsepc.yml, it seems path not works. pnpm command not found or pm2 command not ...
-1
votes
1
answer
87
views
pnpm installation errors in packages
I have a dependencies Issue, I tried to install a specific package, after installation it affect on more than one package, I removed the node_modules and reinstalled pnpm installl still the same ...
0
votes
1
answer
161
views
Update to exact versions for subdependencies in node npm/pnpm to mitigate supply chain attacks
Problem
When I care about devsecops there are some best practises:
Use lockfiles to avoid malware via supply chain attacks
Update vulnerable node dependencies
But as soon as I update a dependency ...
0
votes
0
answers
58
views
commitlint error "Did you mean to import "@commitlint/config-validator/lib/validate.js"?"
how to fix below error when use git commit lint, I'm not sure whether from commitlint.
I looked through the contents of the @commitlint/load package but couldn’t find anything wrong.
node:internal/...
1
vote
0
answers
108
views
pnpm install error: ERR_PNPM_EBUSY (Failed to add tarball from ... to store: EBUSY: resource busy or locked, rename ... -> ...)
I got this error while installing modules with pnpm.
WARN GET https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.0.tgz error (ERR_PNPM_EBUSY). Will retry in 10 seconds. 2 retries left.
WARN ...
0
votes
1
answer
23
views
Cannot import `readConfiguration` from `@angular/compiler-cli` in a pnpm with nx monorepo
I’m building a plain Node-based utility (not an Angular application) that uses the @angular/compiler-cli package directly. When I try to import readConfiguration, TypeScript reports that it’s not ...
0
votes
0
answers
158
views
Properly passing Docker secrets for npmrc and auth tokens
I'm having an issue where I want my javascript project to build in Docker. I copy all projects file that are needed and then I run pnpm i. This will not work because I have a private npm registry for ...
-1
votes
1
answer
57
views
Error: Cannot find module 'express' - Monorepo
My container build and run but, it is throwing an error, My application is a monorepo with 2 apps and some packages.
Main folder structure is:
apps/
api/ -> node + express + typescript
web/ -> ...
0
votes
1
answer
319
views
Turborepo pnpm turbo run dev exits silently after setting up monorepo on new PC
I’m using Turborepo to manage a monorepo project. Everything worked fine on my old PC, but after switching to a new Windows machine and cloning the repo, the following command exits without any errors ...
-1
votes
1
answer
73
views
npx pnpm install ask for a new version [duplicate]
when I run
npx pnpm install --silent
the following prompt appears:
Need to install the following packages:
[email protected]
Ok to proceed? (y)
How can I avoid the questions? It is breaking my docker ...
0
votes
1
answer
143
views
Why do I get TS type errors when building NextJS with PNPM in a monorepo?
I have a mono repo managed with PNPM and when I run pnpm --filter web build I get the following TypeScript error. This is very weird as I only get this one on my server while I ran the same commands ...
0
votes
1
answer
92
views
Trouble creating Angular projects with pnpm on macOS: Project location issue
I'm trying to set up a new Angular project. My preference is to use the pnpm package manager for building Angular projects, and I'm on a macOS system.
I'm encountering an unexpected issue when using ...
1
vote
0
answers
155
views
Package specific resolutions/override in `pnpm`
We have this setup in a monorepo:
apps/mobile (React Native)
apps/admin (Next.JS)
apps/client (Next.JS)
packages/ui (shared in Next.JS packages: apps/admin and apps/client)
The current yarn setup ...
1
vote
1
answer
55
views
Error: Cannot find module '/app/apps/backend/dist/server.js' inside docker container
I have a pnpm workspace application which I'm trying to Dockerize. I get to build the images and containers, but the apps won't run inside it.
Basic structure is:
omnimart/
├── apps/
│ ├── backend/ ...
3
votes
1
answer
352
views
TypeError: queryString.stringify is not a function in Expo Router tab layout – why does installing query-string fix it?
Warning: TypeError: queryString.stringify is not a function (it is undefined)
This error is located at:
Call Stack
TabLayout(./(tabs)/_layout.tsx) (<anonymous>)
ScreenContentWrapper (<...
0
votes
1
answer
171
views
Even when the threshold is not met, the vitest test coverage doesn't fail
i'm using Vitest test coverage and setting thresholds for the script to fail if the threshold values are greater than coverage values but it doesn't do anything. I have no idea what I'm doing wrong ...
2
votes
0
answers
33
views
Failed to load chunk with pnpm and Angular lazily loaded components
I am using an Nx monorepo with Angular 19. I just switched from npm to pnpm.
While running locally, I can install and serve my applications without issue, and I can access routes or open components ...
4
votes
1
answer
536
views
"Type instantiation is excessively deep and possibly infinite" in a monorepo/workspace project
When working in a monorepo/workspace project, I can trigger the following Typescript error:
Type instantiation is excessively deep and possibly infinite
on seemingly benign types like this:
import {...
1
vote
0
answers
137
views
Nut.js not found but its in the Node_modules folder
I've been trying to make a very simple app with nut.js but I just can't get it to work. I installed nut from a .tgz I built from the monorepo and I listed the depends out just to make sure i installed ...
0
votes
0
answers
124
views
Design system package in monorepo: Tailwind CSS ^4.1.5 not applied in Storybook ^8.6.12
I've created a design-system package under packages/fds in my monorepo, but Tailwind CSS styles aren't being applied in Storybook. Here are the relevant configs:
postcss.config.mjs
import { ...
0
votes
0
answers
280
views
How to cache pnpm in Gitlab CI
So I'm trying to use pnpm inside of a pipeline, with efficient caching. There were similar questions already (Use pnpm in diferent Gitlab CI stages) but they do not address all the aspects of caching ...
2
votes
1
answer
1k
views
How to solve this build error in payloadcms
still very new to payload, this is my first project in it. when I try to build my payloadcms app that was based on the blank template I get this:
I tried looking online but I could not find any answer ...
0
votes
0
answers
315
views
import { useSyncExternalStoreWithSelector } from "use-sync-external-store/with-selector.js"; import failed when build the app
Today when I build the project seems have a compatible issue:
error during build:
node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/react-redux/dist/react-...
1
vote
2
answers
917
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
@...
2
votes
0
answers
627
views
How to properly manage pnpm link overrides
I recently switched to pnpm because of its superior support for linking packages from a local dependency, using (for example):
// package.json
{
"pnpm": {
"overrides": {
...
1
vote
0
answers
149
views
NestJS UnknownDependenciesException in some services in monorepo after NestJS update
I'm experiencing a problem within my pnpm+nx based monorepo. I updated nestJS from Version 7 to 11. Since there are quiet a few versions between those two I made sure to update the dependencies like ...
1
vote
0
answers
189
views
Configuring a pnpm workspace package to work both locally and exported
I'm trying to get a pnpm workspace package to work how I assumed they would and I've been unable to find examples.
I have a package that exists within a pnpm monorepo that I want to be able to use ...
0
votes
1
answer
297
views
Deploying and running Next.JS static site on Azure Linux Web App
I have provisioned a Linux P1V3 app service plan and created an app service. It is running NodeJS 20. All this is via Terraform.
A developer has given me their NextJS website repo which uses pnpm, ...
0
votes
1
answer
185
views
trigger.dev init with pnpm -- used npm for installing trigger instead
I try to use trigger.dev's CLI to init my project but for some reason, it keeps using npm for installation (npm install -D @trigger.dev/build@latest) and running into dependency problems.
When I just ...
1
vote
0
answers
60
views
What scripts will be executed when running pnpm build-site from TypeScript-Website
I don't understand the build-site logic defined in the TypeScript-Website` project.
When running "pnpm build-site" in the TypeScript-Website project, it will run: "build-site": &...
0
votes
1
answer
482
views
The requested module '@sveltejs/kit/vite' does not provide an export named 'vitePreprocess'
I am getting an error when starting the dev server/building the application:
import { vitePreprocess } from '@sveltejs/kit/vite'
^^^^^^^^^^^^^^
SyntaxError: The requested module '@sveltejs/...
0
votes
1
answer
94
views
React-Admin Dependency Issue in Turborepo Monorepo: MUI, emotion and etc... Not Resolved
I’m using a monorepo managed by Turborepo, and I recently moved my React-Admin project into it. In my standalone React-Admin setup, I didn’t need to manually install MUI (@mui/material) because it’s a ...
0
votes
1
answer
177
views
NixOS: Installing a package which uses `prebuild-install` in `mkDerivation` with PNPM
I want to install a javascript application on nixos that uses better-sqlite3 as a dependency, using pnpm as a package manager. better-sqlite3 uses prebuild-install, which downloads pre-compiled ...
0
votes
1
answer
172
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 ...
0
votes
0
answers
156
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 ...
1
vote
1
answer
775
views
Prettier plugin not resolved when using GitHub package with pnpm, but works with npm
I’ve got a GitHub package for my Prettier config that I use across a bunch of my projects. The config uses a plugin, and when I install the package using pnpm, it puts the plugin inside the .pnpm ...
0
votes
0
answers
44
views
Preview channels and multiple rollouts in firebase apphosting
In the new firebase service called ‘Firebase Apphosting’ (not firebase hosting), i have two requirements regarding deploying my NextJS 15 app (pnpm based, with env variables and secrets defined):
...
-1
votes
1
answer
150
views
Unable to setup supabase repository locally MacOS
I am currently using a MacOS M4 to setup the supabase repository locally. Unfortunately, after following the entire process to setup the repository, I keep encountering the error below using pnpm ...
1
vote
0
answers
1k
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 ...
1
vote
1
answer
390
views
With Syncpack on a turborepo how to set app version dependencies through a package?
In a turborepo with Syncpack setup if I have 10 apps that all use the same 30 dependencies how can I properly build that out in the .syncpackrc file?
within the app package.json
apps/foo
package.json:
...
0
votes
0
answers
100
views
Why `virtual-store-dir` needs to be unique for each project in `pnpm`
virtual-store-dir
The documentation https://pnpm.io/npmrc#virtual-store-dir says:
NOTE: the virtual store cannot be shared between several projects. Every project should have its own virtual store (...
0
votes
0
answers
100
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/...
0
votes
1
answer
204
views
pnpm call fails being the default build task in VS code
I've got recently stuck with a sudden problem I don't understand.
Context: I do have a monorepo with a bunch of TS projects developed via VS Code. Using pnpm as the package manager.
I've tried to set ...
0
votes
0
answers
584
views
How to configure Jest properly in a pnpm monorepo with TypeScript, React, and Vite?
In Hello.spec.tsx, Jest is unable to recognize the Test component. This component is located in the ui library within the /libs directory of the monorepo. I’ve tried importing it using the standard ...
2
votes
0
answers
841
views
pnpm CLI is missing for VSCode inegrated terminal but not for MacOS default terminal
I recently changed my pnpm and node versions. After changing, my VSCode integrated terminal is refusing to recognise any pnpm CLI files. I get the following error when I try to run any command ...
0
votes
0
answers
962
views
Cannot find module '@repo/example' in Turborepo monorepo project
I am working on a turborepo project and I built myself a simple package like in a video but as soon as I type import {} from '@repo/example'; the '@repo/example' part gets highlighted by vscode and it ...
9
votes
3
answers
11k
views
After Heroku restart: pnpm: Error: Cannot find matching keyid [closed]
My Heroku-hosted node app stopped working this morning at 6am.
In the Heroku console I found a message "Dyno restart" at that time. At the same time, memory usage dropped to 0. Apparently ...
0
votes
0
answers
140
views
How to keep monorepo deps in sync in JS/TS project?
Is there some smart or "industry standard" way to keep dependencies in sync inside workspaces/modules in a monorepo?
Let's say we have following structure in the repository
AwesomeProject/
├─...