nrwl Questions

1

I have a monorepo using NX & Angular and I am publishing some libs to NPM and i have the following scenario apps only_App libs lib_A // v1.0.0 lib_B // v1.0.0 lib_C // v1.0.0 lib_A depends...
Conglobate asked 16/6, 2022 at 12:12

2

Solved

It seems like in a Nrwl/Nx workspace there is only a single package.json file. Now if we have multiple applications, each dependent on different packages, then we have to include all of those packa...
Brawn asked 11/10, 2018 at 13:41

1

While upgrading Angular (via Nx/NRWL) from 11 to 12, tests started to fail due to: Property 'and' does not exist on type 'SpyInstance<{ afterClosed: () => Observable<{ snoozeDate: Moment; ...
Puto asked 16/6, 2022 at 15:46

2

I have a Nx monorepo with multiple react applications. I want to be able to run the build once and then deploy the same build to multiple environments (e.g. dev, test, production). What I used to d...
Dauntless asked 25/8, 2021 at 16:2

4

I am new to nrwl nx cli and extensively searched through their documentation and could not find the command to generate the nestjs module as lib rather than the actual module within app. The reaso...
Genro asked 28/3, 2019 at 12:33

0

I wrote a few generators that were working until I did a recent migration. I was importing and using Nrwl AST utils using import paths like: import { addImportToModule } from '@nrwl/angular/src/uti...
Depression asked 31/3, 2022 at 3:15

2

If I have an Authentication lib, with components, service, ngrx, etc... How I can access the environment of the app implementing Authentication lib? So the Auth service should knows the backend url...
Club asked 15/9, 2018 at 17:6

0

I am working on Nx monorepo. We have 5 library and are using imports like this '../../components/Button' in library. but instead of this, we want to use absolute imports. For example: there are 2 f...
Eisenberg asked 28/1, 2022 at 11:50

1

I'm running into errors when I try to run the build artifact of a NestJS app that was created within an Nx workspace. The error only occurs when I run the resulting artifact anywhere outside of the...
Stableman asked 20/9, 2019 at 22:8

1

Solved

So I have the following project structure: apps ├── car └── [...] libs ├── app-car ├── [...] └── shared ├── config └── [...] For every app I want to provide a different config, that can be used ...
Brahui asked 15/11, 2021 at 10:34

1

Solved

Im getting this error Cannot parse tsconfig.base.json: PropertyNameExpected in JSON at position 891 when i run nx g @nrwl\angular:lib libName on CLI my tsconfig.base.json { "compileOnSave&qu...
Freeforall asked 21/9, 2021 at 16:1

1

I want to build a nestjs backend which is used by a angular frontend application. Each of them for now in a single repository. I stumbled over nrwl-nx for monorepo tooling and am really intrigued t...
Twig asked 4/3, 2020 at 12:52

1

Solved

hello i'm in new in monorepos world and i'm now searching about different monorepos tools and i found two intersting tools Nx(nrwl) and lerna but i didn't understand the real differnce between thes...
Faliscan asked 8/4, 2021 at 8:48

6

My NX application's npm run build:server calls ng build api-server that triggers the @nrwl/node:build builder. It builds the NestJS application as main.js. Things work except I wanted process.env....
Clinkscales asked 25/9, 2019 at 1:42

3

Solved

My project was created using nx schematics, and I'm having some components inside libraries that I want to unit test using jest.js. Every test fails with following errors: ● MyComponent › should c...
Outsider asked 27/3, 2019 at 10:26

0

Background: I am building an Angular dashboard where I import widgets (Angular modules and components) dynamically (without routing). I achieved this with the help from this great article https://n...
Prismatoid asked 27/12, 2020 at 8:59

2

Solved

I have several apps in my Angular monorepo project. Also there are about 5 libraries I've written to use across the apps. What I want to know is how to better build/architect these libraries. The...
Wilderness asked 23/7, 2019 at 19:25

5

I want to start an Angular project using Nrwl Nx (multiple apps in one project; https://nrwl.io/nx), but I have two questions: How can I specify different version numbers to the different apps? U...
Sunglass asked 6/3, 2018 at 13:21

1

Solved

What is the difference between nx affected:lint --fix and nx format:write? Different articles does seem to mention that code should be formatted with nx format:write command, but it doesn't seem t...
Lamellate asked 20/5, 2020 at 17:12

0

I have an existing NX project name myorg. which have already three application name one, two, three. I am able to create a new application (name: four) into that NX project (myorg) by the command: ...
Peursem asked 12/4, 2020 at 14:5

1

I have create a angular workspace which host multiple angular projects and libraries. In workspace I have a shared library which contains all assets(images and logos). "assets": [ "projects/xxx-...
Insurer asked 24/1, 2019 at 20:53

1

I am new to cypress and learning day by day, we are trying to implement e2e tests using cypress in angular project. I am facing issues when I want to set env variables in cypress.json file through...
Lamarlamarck asked 17/10, 2019 at 20:18

1

Solved

nx format:check expects no colon after else in html files: <div *ngIf="isValid; else errors"> but when I run prettier in the same project it expects a colon after else <div *ngI...
Unchartered asked 19/3, 2019 at 16:39

1

Solved

I am trying to set up shared styles and assets (i.e. fonts) in a nrwl-nx monorepo for use in libraries and apps. My desired outcome is having a library 'theme' that provides shared styles scss v...
Eurhythmic asked 28/7, 2019 at 17:29

1

Solved

I would like to import my PageNotFoundComponent from my ui-components library into the router of my app. When I import the UiComponentsModule into my AppModule and use the components in my templat...
Tyne asked 28/6, 2019 at 11:29

© 2022 - 2024 — McMap. All rights reserved.