173 questions
-5
votes
0
answers
106
views
How to have vs code detect deleted typescript files still referenced in the project? [duplicate]
I have a nx monorepo with a lib - typescript
In the lib there is a directory with subdirectories per feature.
I don't need one of the types anymore - so I deleted the file inside which the type was ...
4
votes
0
answers
133
views
Inject migration angular didn't work on nx workspace
I use this nx generate @angular/core:inject to migrate projects but get below error:
Could not find any files to migrate under the path /home/jibit/Desktop/jibit-angular-workspace/. Cannot run the ...
0
votes
0
answers
42
views
Managing .m2 dependencies with NX monorepo
I am using nxrocks/spring-boot plugin to build my multi-maven project in NX mono repo. This plugin has install and build executors and e.g if I build one submodule x which has dependency on submodule ...
1
vote
0
answers
98
views
Nx Monorepo enable hot reload in a container
I'm using NX Monorepo which contains a Nest.Js backend called Gateway. I'm trying to get hot reloading to work to remove the burden of setting up environments. However, making file changes doesn't ...
0
votes
0
answers
30
views
Nx run monorepo with custom command
How do we start the development server for a monorepo app using a custom script from different pacakge, which will be typically used to run the app
this is package.json at root level
{
"name&...
1
vote
0
answers
79
views
Property 'compiler' does not match the schema. 'tsgo' should be one of babel,swc,tsc
I want to try the new typescript compiler (pre-releases for typescript 7) with my nx mono repo.
I installed the pre-release with
npm install -D @typescript/native-preview
Now I would assume that I ...
0
votes
0
answers
237
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 ...
0
votes
0
answers
25
views
Syntax Error and Platform-Specific SVG Import Issue in React Native & Next.js Monorepo(tsx)
I'm working on a monorepo project that includes both React Native and Next.js (Web). I'm encountering an issue where I am using react-native-svg for rendering SVGs. The problem arises when the code ...
0
votes
0
answers
34
views
NX Monorepo - import of JSON file fails when using path alias
We have a NX Monorepo for a complex application. Recent change request from our client introduced couple of changes and one micro FE application was practically duplicated.
It consists of multiple ...
0
votes
0
answers
155
views
NX: "Daemon process terminated and closed the connection" happens randomly
I am working on a project using React with TypeScript and running my project locally using NX. However, often times, the localhost would stop working with a message popping up on my command line ...
0
votes
0
answers
103
views
NX Generators - Set module to "ESNext" instead of "commonjs" in tsconfig.json
I want to create an NX generator to ensure that newly generated projects e.g. of type @nx/js:library have their compilerOptions module value set to "ESNext" and not "commonjs" at ...
0
votes
0
answers
116
views
Serving NX project doesn't show changes made in lib
I'm new to nx and mono repos. We have a react, stencil.js, nx repo. Each project is under libs.
One project is the "main" application. The page itself.
Second project is the "sub" ...
0
votes
1
answer
69
views
NX/MonoRepo: Implement hierarchical shared peerDepdencies for a set of libraries to be used in the same host app
I have a monorepo based on NX/React/Vite/MUI. The mono repo structure is as follows:
root package.json
apps
desktop-app
web-app
packages
UI library A
package.json
UI library B
package.json
UI ...
0
votes
0
answers
66
views
NX / NestJS misconfiguration when using nest-commander
This is my first time using NX and I've found a problem related to NestJS under NX monorepo.
I'm using NX 20.4.2, NestJS 10.0.2 (installed via @nx/nest plugin) and yarn 1 as package manager.
I've ...
0
votes
0
answers
363
views
Angular v19 module federation - Turning on webpack HMR throws loadShareSync failed error
I have an angular v19 app in a NX monorepo with module federation configured.
I want to enable HMR for this project so I turned on the option in project.json file:
"serve": {
"...
0
votes
0
answers
70
views
How to use environment variables in a typescript library with NX
For a typescript library added to a Nx monorepo without build configuration (Vite):
.env file is created in the root of the project: redux
Accessing using dotenv: config.ts
import * as dotenv from '...
2
votes
0
answers
372
views
Nx release command doesn't automatically push the release commit and tags
I have the following minimalistic nx.json config:
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"targetDefaults": {
"build": {
"...
0
votes
0
answers
182
views
Debug Nest.js application with Visual-studio-code in Nx monorepo
Trying to debug Nest.js application using vscode.
Auto Attach: always
Tried to find some relevant configuration, but could not find any, so I tried using the Next.js configuration suggested in this ...
-1
votes
1
answer
106
views
Cannot find module 'spdx-license-ids' when running tests with Jest and Pulumi
I'm encountering an error when trying to run a test with Jest in a project that uses Pulumi.
Here's the error stack:
Cannot find module 'spdx-license-ids' from
'../../node_modules/spdx-expression-...
2
votes
0
answers
241
views
NativeWind Styling Not Working in NX Monorepo with Expo
I'm setting up a NX monorepo with Expo for mobile apps and using NativeWind for styling. While the project runs fine with standard CSS, I'm encountering issues when integrating NativeWind. Despite ...
0
votes
0
answers
263
views
Changes to the project.json file in an Nx monorepo doesn't reflect on Nx CLI behaviour
I have set up an Nx monorepo for a Nest.js Standalone.
I noticed that when I changed my project.json configurations to change Nx Commands and add modes (Dev, Prod) so I toggle optimization in webpack ...
0
votes
0
answers
55
views
How Does Nx Determine Build Tools and Targets for Different Apps in a Monorepo?
When I run nx serve web, it starts the web app using Vite. Similarly, when I run nx start mobile, it starts the mobile app using Expo. However, I don’t understand how Nx knows which build tool to use ...
0
votes
1
answer
77
views
Steps to get Firebase Authentication working locally?
Im using NX with firebase app hosting to get my angular application deployed. It is deploying correctly and seems like auth is working there on the live site but when running the app locally the popup ...
5
votes
2
answers
436
views
Error: NX Request failed with status code 403
With this command, I installed Nx correctly on my system
npm install -g nx
Then I started my first project with this command
npx create-nx-workspace my-monorepo
I answered almost all the questions ...
0
votes
0
answers
126
views
How to make Nx ignore yarn.lock / package-lock.json to not affect a specific project?
I've combined multiple technologies in a single monorepo, specifically Node and Gradle.
With the current setup, a version change of Node dependencies will trigger Gradle build and deploys, as Nx is ...