1,475 questions
-4
votes
0
answers
26
views
NX Workspace backend setup in monorepo during CICD [closed]
I have a full-stack app setup in a single repository, and to top it off, with frontend being in apps/frontend, and backend being in apps/backend. And to make it even better, the backend is a monorepo. ...
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 ...
0
votes
1
answer
58
views
Missing DATABASE_URL environment variable for Prisma in Turborepo when deploying
I am trying to deploy a Next.js frontend from my Turborepo monorepo to Vercel. The deployment fails during the build step when it tries to run prisma generate.
The error log clearly shows that the ...
-3
votes
1
answer
74
views
Shipping a UI package alongside projects in a monorepo
Given a monorepo containing N projects, I wanted to avoid duplicating components, so I thought of creating a dependency package that only ships the components.
However, if I install TailwindCSS in ...
0
votes
1
answer
49
views
NextAuth module augmentation not working in Turborepo monorepo (Property 'id' does not exist on type 'Session.user')
I’m using a Turborepo monorepo with a Next.js 15 App Router project (apps/web) and a shared packages/types package that contains my NextAuth module augmentation.
However, TypeScript still gives this ...
1
vote
0
answers
36
views
How to deploy monorepo Dockerfile to Digital Ocean App Platform
I'm attempting to configure a two-component (frontend + backend) monorepo deployment using Digital Ocean's App Platform. I'm starting with the backend. The monorepo looks like:
client/ <-- NextJS ...
0
votes
1
answer
39
views
Why is jest `globalSetup` not run for certain project-related invocations? [closed]
I have a TypeScript monorepo that uses jest, and has a globalSetup script configured at the root config (it starts a local database process that many of the tests use).
Example
Directory structure
...
0
votes
0
answers
61
views
500 “Internal Server Error” when using TCP communication between NestJS microservices (Turborepo / Monorepo)
I’m building a monorepo using Turborepo and NestJS, following a microservices architecture with TCP communication between services.
Here’s my folder structure:
apps/
├── api-gateway/
│ ├── src/
...
0
votes
0
answers
61
views
How to import from files in the same TurboRepo package, PNPM
I’m working on a monorepo using pnpm with multiple apps and a shared package (packages/common).
My ws-server app imports types and utilities from packages/common/src/types and messageUtils.ts. The ...
0
votes
0
answers
40
views
How to debug a monorepo in VS Code with multiple workspaces at same time?
How can I debug a monorepo with multiple workspaces in VS Code during development at the same time?
Workspace1:
/packages/framework -> will be included in an npm package later
Workspace2:
/apps/...
1
vote
0
answers
66
views
Nx/NestJS - Empty dependencies list on package.json after build
I'm trying to create a Nx workspace(monorepo) with a NestJS app inside it (I'm fairly new to both Nx and Node.js/NestJS ecosystem).
I run the following command to create a new Nx workspace.
npx create-...
0
votes
0
answers
43
views
API Gateway Timeout Error in mern project
Currently I am building a restuarant project, mono-repo in microservice, only auth-service(I am learning micro services so i just moved auth module as a service)
the issue is, if i use api-gatewway ...
0
votes
0
answers
52
views
Building lib in npm worspaces with typescript project references
Context
I’m working on a npm workspace with this structure:
packages/
lib-a (publishable React Native package)
lib-b (internal library not publishable)
lib-a depends on lib-b
I use TypeScript ...
2
votes
0
answers
80
views
VSCode typescript doesn't show error that tsc does
I have a monorepo with typescript project references and npm workspaces and I have a problem with mixed JS/TS code - while VSCode reports "all good" in a TS file, running tsc -b against the ...
0
votes
0
answers
21
views
How can I generate Nx workspace files inside an existing cloned repo folder?
the correct way to initialize Nx directly inside an existing cloned repo folder (without creating a nested folder)?
i have tried using this two commands but i still get error
npx create-nx-workspace@...
0
votes
0
answers
64
views
Global.CSS issue with TailwindCSS and PostCSS in Turborepo Monorepo
I am new to setting up a monorepo solution as I've only worked with a regular next app in the past. For my current project, I have 2 deliverables and I am trying to share resources and components ...
0
votes
0
answers
44
views
Vercel deployment of Next.js app with custom 'rewrites' in vercel.json results in 404 errors on all routes
I have a monorepo project with a Flask backend (deployed separately) and a Next.js frontend located in a frontend directory. I'm trying to deploy only the frontend on Vercel.
Project Structure:
text
...
0
votes
1
answer
84
views
Wrangler library Unsupported platform: win32 [duplicate]
Hopping you have a nice day.
I'm working on a monorepo using React and Cloudflare workers for my BE. But I've a struggle when running:
npm i -g wrangler
I get this error message:
npm error Error: ...
-1
votes
1
answer
64
views
Docker build error => ERROR [ai-agent-service builder 5/6] COPY pyproject.toml poetry.lock* ./
There something is not correct either in Dockerfile of services, or docker-compose.yml, on one builds it builds the images successfully, and for second time build fails with below error, then when I ...
2
votes
1
answer
308
views
Tailwind CSS not applying in Turborepo monorepo with shared tailwind-config package and UI component library and storybook
Description
I have a Turborepo monorepo set up with the following structure:
root/
├── apps/
│ ├── web/ # Next.js app
│ │ ├── src/
│ │ ├── package.json
│ │ ├── tailwind....
0
votes
1
answer
63
views
Next.JS monorepo not loading correct assets when switching zones (Loading Chunk Error)
I have multiple projects set up in a monorepo. I load all of them and browse out to Shared to load the initial layout. However, when I click a link to go to a different zone/app Customer, I receive ...
0
votes
0
answers
57
views
How to navigate expo router in Mono Repo React Native?
I have 2 projects
apps:
-src
-index.tsx
packages
-my-auth
src/sreen/login.tsx
src/sceen/register.tsx
on this index proejct app I want to or router and move the page to package package/mya-auth/src/...
0
votes
0
answers
90
views
How to get full React error messages instead of minified errors when using Turbo build system?
I' m using Turbo to manage my jupyterlab monorepo and run/build my React app. When I run the app or build with Turbo, I see minified React errors like:
Error: Minified React error #185; visit
https://...
0
votes
0
answers
526
views
Deploying nextjs turbopack application returns 404 error
I have a Next.js 15 application that builds successfully on AWS Amplify but returns a 404 error when accessing the deployed site. The build completes without errors, but the homepage and other routes ...
0
votes
0
answers
140
views
dev mode with tsup and turborepo
In typescript turborepo, this is turbo.json
{
"$schema": "https://turborepo.com/schema.json",
"ui": "tui",
"tasks": {
"build": {
&...
0
votes
1
answer
150
views
Shared package in nextjs monorepo + shadcn/ui
Using Next.js and Shadcn/UI in a monorepo environment.
As per the documentation https://ui.shadcn.com/docs/monorepo, I added form component as
cd apps/web
pnpm dlx shadcn@canary add form
This added ...
0
votes
0
answers
55
views
Trying to load tailwind v4 into library from Angular Monorepo
I have an Angular monorepo set up with a main app main in projects/main/... and a library qrcode in projects/qrcode/... and I'm trying to have tailwind available for the lib. Tailwind (V4) does work ...
0
votes
0
answers
80
views
TurboRepo Internal Server Error next-js for loacl host
when you freshly download the tubrorepo using npx create-turbo@latest and uses npm than if you try to open the nextjs website in local host you face the interval server error problem which can be ...
0
votes
0
answers
33
views
NodeJS Monorepo Build Workspaces in Desired Sequence
I've plan to setup a monorepo project, and I am about to use the TurboRepo for that.
My question here is:- can I determine the build sequence of the workspaces declared in the root package.json?
In my ...
2
votes
0
answers
134
views
Angular app not bootstrapping after NX migration to v20.5.0
I'm migrating an Angular monorepo managed by NX. After running:
npx nx migrate 20.5.0 (current version is 19.1.1)
Everything completed without errors, and the app starts (no errors in the terminal or ...
0
votes
0
answers
24
views
Tailwind styling broken when components in monorepo package [duplicate]
I am trying to create a monorepo using astrojs, styled with tailwind.
Example file structure is
/root
./apps/main-site
./packages/site-1-components
My tailwind config was in the main-site and does ...
0
votes
1
answer
317
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 ...
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
0
answers
99
views
Structure for Publishing a Packages Only Monorepo to NPM
I want to publish an npm module that provides modules as follows:
appname/react
appname/utils
with a turborepo I created with the following structure:
appname
/packages
react
utils
both ...
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 ...
0
votes
1
answer
266
views
Error when running next build in nextjs monorepo turborepo
I have a turborepo with 2 NextJS projects in it.
When I run next build I get this error:
[TypeError: Cannot read properties of null (reading 'useContext')]
Error occurred prerendering page "/404&...
0
votes
1
answer
200
views
Android build failure in a monorepo with a react-native package
After creating a new monorepo with a package for a new react-native project (0.77.2), the Android build was failing with the following error:
FAILURE: Build failed with an exception.
* Where:
...
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 ...
0
votes
2
answers
119
views
Dockrized NestJs Monorepo project with Prisma failed to run after build
I've a NestJS monorepo project with two apps, and I've used Prisma ORM to connect with a MySQL database. I'm using Prisma schema in the project root like this.
monorepo/
├── apps/
│ ├── app1/
│ │ ...
0
votes
0
answers
43
views
Vite somehow in a loop, colliding with it's own process
I'm working with Tauri, using React and Vite for the front end. Everything was going well, but recently after changing some things around in this monorepo vite runs into a bug where it attempts to ...
1
vote
0
answers
304
views
How to share drizzle inferred types between backend and frontend in a monorepo?
The types are inferred from drizzle queries in the backend. I thought of exporting types from backend -> shared package -> frontend. But this seems like a bad idea now. How to share the types ...
4
votes
1
answer
530
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 {...
0
votes
0
answers
122
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
49
views
Chakra UI shared theme in Nx – styles breaking in UI library components
I'm working on a monorepo using Nx with Chakra UI. I’ve set up a shared library to hold my custom theme, and I’m importing it into my apps and component libraries.
Here’s the setup:
I have a shared ...
2
votes
0
answers
530
views
Python hatch, build more than one package from same source
I've started to migrate my project from poetry to hatch.
Hatch supports dynamic versioning and other dynamic properties
Hatch supports uv
Hatch supports multiple build targets / Project mode
In my ...
0
votes
0
answers
108
views
ReferenceError: Property 'HTMLElement' doesn't exist [Component Stack] in Expo React Native app (intermittent issue)
I am facing an intermittent issue in my Expo React Native app, where I occasionally get the following error message:
ReferenceError: Property 'HTMLElement' doesn't exist
This error does not occur ...
0
votes
0
answers
240
views
Nx monorepo MODULE_NOT_FOUND – require(’@scope/lib’) fails in dist
Im looking for help with basic lib dependency in an app. not a custom solution
Nx monorepo: Internal library imports not found after production build
I'm working in an Nx monorepo (v20.4.4) with a ...
1
vote
2
answers
905
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
@...
1
vote
0
answers
493
views
typescript import error while using bun workspaces, might because how bun install node_modules in monorepo
Getting this error while using monorepos with bun-workspaces. While I don't suggest to use bun for monorepo. I have packages/* and apps/* getting error while importing drizzle-client pacakges from ...
0
votes
0
answers
50
views
How to setup a singleton store/event bus for micro front ends monorepo with Vue2, Vuex, Vite?
I have this structure which every feature will be treated as a mini app, they will be bundle as separated scripts (based on vite-feature.config) to ready for load as needed on an external app.
They ...