Questions tagged nrwl-nx

Explore the latest questions and answers asked by our top developers.

styles.css – Error: (0 , _identifier.getUndoPath) is not a function

I am trying to setup an Angular app using Nx CLI. I have used the command npx create-nx-workspace –preset=angular A workspace gets created. When I run that using npx nx serve –port 4300 I end up getting an error in my cmd styles.css – Error: (0 , _identifier.getUndoPath) is not a function Does anybody know […]

By node modules
Published
Categorized as angular, nrwl-nx Tagged ,

failed to create nx workspace due to applocker constraints on windows

I am checking nx for our Angular enterprise environment. For this I executed "npx [email protected] ". Later in the installation process it fails due to applocker constraints. Applocker blocks the execution of the script C:UsersusernameAppDataLocalTemptmp-3784-XIMdt41a5XETnode_modules.bintao.cmd because the path is random and the script not signed. Question: Is there a way to configure the execution path […]

By Dirk Lammers
Published
Categorized as angular, npm, npx, nrwl-nx, windows Tagged , , , ,

NX Angular Workspace – Not able to create (Cypress Permission error)

I’m trying to create a new "NX workspace" with Angular. But it’s failing due to come cypress permission issue. I tried multiple times. But don’t know what is the reason for it. Below are my Node and Angular system configurations Node version: 14.17.3 NPM version: 7.19.1 Angular CLI: 12.1.1 @angular-devkit/architect: 0.1201.1 (cli-only) @angular-devkit/core: 12.1.1 (cli-only) […]

By sharath subramanya
Published
Categorized as angular, cypress, javascript, nrwl, nrwl-nx Tagged , , , ,

Transloco – How to avoid adding transloco root module to non transloco apps but incluide the library which needs translations

I’m using the transloco for my Nx project. I have multiple apps and libraries in my Nx project. For one of the project and related libraries, I have added the transloco. But the same libraries are used in the other app where transloco isn’t needed. How can I handle the translations for the libraries which […]

By Kranthi
Published
Categorized as angular, nrwl-nx, transloco Tagged , ,

What’s the builder to use when using nx with angular.json

I migrated an existing angular project to use nx. But I am not quite sure if I did it the correct way, as the performance is very poor. I now switched from "builder": "@angular-devkit/build-angular:browser", to "builder": "@nrwl/web:build", and it seems that the performance got better. But there are more, for example: "builder": "@nrwl/angular:webpack-browser", "builder": "@nrwl/angular:ng-packagr-lite", […]

By timtos
Published
Categorized as angular, angular-cli, nrwl, nrwl-nx Tagged , , ,

Which builder to use when using nx with angular.json

I migrated an existing angular project to use nx. But I am not quite sure if I did it the correct way, as the performance is very poor. I now switched from "builder": "@angular-devkit/build-angular:browser", to "builder": "@nrwl/web:build", and it seems that the performance got better. But there are more, for example: "builder": "@nrwl/angular:webpack-browser", "builder": "@nrwl/angular:ng-packagr-lite", […]

By timtos
Published
Categorized as angular, angular-cli, nrwl, nrwl-nx Tagged , , ,

Problem with using nx affected for Nx Monorepro in Azure DevOps

We have two Angular applications with their libraries in our Nx monorepro. The apps are build on our Azure DevOps pipeline. We started off by always running tests and builds for everything all the time which worked, but is way too slow. We now wanted to make use of the caching and turned to only […]

By Erbsenkoenig
Published
Categorized as angular, azure-devops, nrwl-nx Tagged , ,

Nx + Firebase: Can’t run emulators

I’m trying to run the Firebase emulators in the Nx workspace. I added firebase to the project: npm install firebase @angular/fire –save nx g @angular/fire:ng-add // sets up package in project (this didn’t work) ng add @angular/fire // sets up package in project (this worked) I initialized firebase in the local folder: firebase init I […]

By PaxForce
Published
Categorized as angular, angularfire2, firebase, nrwl-nx Tagged , , ,

Remove Code blocks based on Environment Nx Angular

I’m really interested in inserting or removing code blocks in my Angular App based on the environment. Specifically removing certain import declarations and related code that should not be used for Production keeping the bundle light, while getting the benefit of extra code in the dev environment. I know webpack can handle code trasformations, so […]

How to use short paths for importing in Nx Workspace?

I have created an NX Workspace using Angular preset. Where I have one app and two libraries. Inside my app, I am trying to use shorter paths for import. With my current approach inside my app, I can use short paths for all files and folders for my app only. Whenever I am trying to […]

By RAHUL KUNDU
Published
Categorized as angular, nrwl, nrwl-nx Tagged , ,
1 2 3 9

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq