Questions tagged [nrwl]

Nrwl - Company behind Nx development. Nrwl provides consulting in the frontend space, helping enterprise teams scale their development. Use nrw-nx if you want to tag a Nx specific question

Nrwl is the company behind Nx development. Nx is an open source smart, fast and extensible build system. For more info, visite nx.dev.

Nrwl provides consulting in the frontend space, helping enterprise teams scale their development efforts.

407 questions
0
votes
1 answer

How to change the template file(s) for an existing nx schematic

I started to use https://nx.dev/ recently to reorganize an existing monorepo with multiple react frontends and redux state management. nx provides the ability to create new redux slices out of the box using the @nrwl/react:redux schematic like: nx g…
mcmunder
  • 435
  • 1
  • 5
  • 11
0
votes
1 answer

Angular Nrwl Nx Data Persistence with non-class Actions

Is it possible to use non-class-based actions with Nx Data Persistence? I could not find anything in the docs. This here is what I tried so far: run: (action, state) => { const booking: Booking = action.booking; return…
Phil
  • 7,065
  • 8
  • 49
  • 91
0
votes
1 answer

Creating react app in nx workspace fails - yarn not found

I am following the NX tutorial (here) about creating react app but I get an error: ✔︎ tracking-platform (master) ✗ npm run nx -- generate @nrwl/react:application todos > tracking-platform@0.0.0 nx /home/kklimczak/workspace/tracking-platform > nx…
kklimczak
  • 623
  • 4
  • 10
0
votes
1 answer

Nx cypress - adding custom plugin for visual testing

I am trying to set up a one of visual testing plugin from cypress https://docs.cypress.io/plugins/#visual-testing but in nrwl nx monorepo. I follow the guide from https://github.com/meinaart/cypress-plugin-snapshots but can't make it work. Actual…
0
votes
1 answer

Using GraphQl and MongoDB schema as library in NRWL/NX Enviornment

I am fairly new to the NRWL/NX world. What I am trying to accomplish here is, to use the GraphQL (with the MongoDB) for the API. In past, I've created the GraphQL project with MongoDB in a non-NRWL environment. However since now we have multiple…
NBaua
  • 583
  • 4
  • 16
  • 33
0
votes
1 answer

Adding React to a workspace failed, EACCES: permission denied, mkdir '/home/mint/.cache/Cypress'

I am trying to add @nrwl/react on en empty nx workspace. So i am creating an empty nx workspace with : yarn create nx-workspace . Then when i do a yarn ng add @nrwl/react to add React i have this error (even with sudo) : > cypress@3.3.1…
Anatole Lucet
  • 1,603
  • 3
  • 24
  • 43
0
votes
1 answer

How to debug a NestJS app in nrwl monorep

I am trying to debug a NestJS app from within a nrwl monorep (Version 7.8.1). The NestJS app is started via ng serve api, where api is the name of my NestJS app. When I try to attach to the Node process from Webstorm for debugging, this is not…
Andreas
  • 1,551
  • 4
  • 24
  • 55
0
votes
1 answer

CommonJS modules in

Using Nx for my Angular workspace, and noticed something, which raised my question. What's the purpose to use CommonJS modules in all tsconfig.spec.json files for libs? Checking Nx examples all libs don't have it, only apps have included "modules:…
Daniel Danielecki
  • 8,508
  • 6
  • 68
  • 94
0
votes
1 answer

nrwl - ng generate gives maximum call stack size exceeded

getting Maximum call stack size exceeded ng generate @nrwl/schematics:library feature-restaurant-profile --parentModule=apps/web-kmeal-restaurant/src/app/app.module.ts --routing --lazy --dry-run --no-interactive
Bhaskar
  • 127
  • 1
  • 18
0
votes
1 answer

@nrwl/nx error when creating new apps and libs

I'm getting errors that seem to stem from linting during the creation of a new lib or app via nrwl's nx. I've taken an existing angular/cli project and added @nrwl/schematics to it (via the ng add @nrwl/schematics command). I then try to add a new…
yccteam
  • 2,168
  • 4
  • 25
  • 47
0
votes
1 answer

How to unit test cancellation of in-flight RXJS requests

I'm using NGRX, and use Effects to send HTTP requests. If a user sends another request, any previous request should be cancelled. It is working fine when I test manually, but I want to be able to unit test this. To test this, I'm mocking the service…
Boland
  • 1,531
  • 1
  • 14
  • 42
0
votes
1 answer

what is the design choice to follow with nrwl nx angular

I am using nrwl Nx for my app developement. So far I have been following like this. Created separate library for my lazy loaded feature. eg: i have a news module where I have news add/delete/update features. This library has all the required…
Jay
  • 336
  • 1
  • 4
  • 15
0
votes
1 answer

Can't load dynamic arguments in an Angular module forRoot import while running with --aot flag

I'm trying to get my code to compile during --aot flag, but it fails where I try to load environment configuration into my logging service that I import in my app.module.ts file. I have code looking like this that runs fine with "ng serve" This is…
Sam
  • 418
  • 2
  • 6
  • 18
0
votes
1 answer

Cannot generate a new application wth properties

I created an nx workspace ng new nx-ng --collection=@nrwl/schematics I then attempted to add an app with the following command ng generate app pim --directory=ts --tags=shared,experimental --prefix=pim --inline-style --inline-template…
st_clair_clarke
  • 5,453
  • 13
  • 49
  • 75
0
votes
1 answer

Cannot find module 'typescript' from but tsc -v logs

I have a project using nrwl/nx and I started the workspace(morningharwood) and an app(portfolio) on my home computer (windows). On the move, I've now cloned the repo, yarn install the deps and tried to run on my mac. Unfortunately, when running…
Armeen Moon
  • 18,061
  • 35
  • 120
  • 233
1 2 3
27
28