Questions tagged [nrwl-nx]

Nx is an open source, next generation build system with first class monorepo support and powerful integrations.

Nx - Smart, Fast and Extensible Build System

Nx is an open source, next generation build system with first-class monorepo support and powerful integrations. It helps you architect, test, and build at any scale, integrating seamlessly with modern technologies and libraries while providing a robust CLI, caching, dependency management, and more.

Nx comes with a set of plugins for TypeScript, Angular, React, Node, Storybook, Cypress, Jest, and more, maintained by the Nx core team and a huge set of community provided extensions.

Find out more on nx.dev and on GitHub.

807 questions
0
votes
1 answer

Getting error while trying to migrate to Angular 9 : Error encountered in metadata generated for exported symbol

I am trying to convert an Angular 8 app to Angular 9. While running migration command I see that i get: Undecorated classes with DI migration. As of Angular 9, it is no longer supported to use Angular DI on a class that does not have an…
Mohammad Jalili
  • 296
  • 4
  • 14
0
votes
0 answers

Angular 10 Routing

I just generated a new angular project with the latest nrwl workspace. I did a simple login screen where you can sign in. Right now there is no validation, I just want to switch page on Button click. But my problem starts there. The url is changing…
0
votes
1 answer

How to limit certain components from being used (imported) outside of their Nx lib?

Imagine this typical Nx file structure represents my project. Is it possible to limit components from being referenced outside of their lib? For example, I want the banner component to be available within the ui lib but not available for import in…
ignite-me
  • 738
  • 3
  • 14
  • 33
0
votes
0 answers

Can't resolve all parameters for ApplicationModule: (?) using Jest

I am trying to run my tests and I get this error while testing nx(mono-repo) angular test using Jest Can't resolve all parameters for ApplicationModule: (?). at syntaxError (../packages/compiler/src/util.ts:100:17) at…
0
votes
1 answer

Invalid or unexpected token while Jest migration

I'm migrating my project from Karma-Jasmine to Jest. But I'm getting the following error. It seems I'm missing some configuration. The error points out to constructor(@Inject('env') env: IEnvironment, line from the service which is imported in the…
0
votes
1 answer

updating nx to 9.2.4 fails: incompatible prettier

Package "@nrwl/workspace" has an incompatible peer dependency to "prettier" (requires "^1.19.1", would install "2.0.4") × Migration failed: Incompatible peer dependencies found. Peer dependency warnings when installing dependencies means that those…
TmTron
  • 17,012
  • 10
  • 94
  • 142
0
votes
2 answers

dataPersistence.navigation not executing when navigating to url

In previous applications using either Angular 8 and 9, I was using class-based actions rather than action creators. This time around, I decided to try using action creators instead. However, I've run into a hitch: where I previously used…
0
votes
1 answer

ng serve command requires to be run in an Angular project, but a project definition could not be found

I am trying to create nrwl workspace project using nrwl cli. I am following the below github instruction to create the nrwl workspace project https://github.com/onehungrymind/angular-core-workshop But I am getting the below error When I checked ng…
user6410893
  • 53
  • 3
  • 9
0
votes
1 answer

nrwl/nx schematics create angular app and configure angular json

I'm working in a nrwl/nx monorepo. My applications are having a custom configuration in angular.json. For example the output path were customized. Now i want to write my own schematic, which will configure my project. My problem is, I don't know…
Lukas
  • 155
  • 1
  • 2
  • 7
0
votes
0 answers

sourceMappingURL in output Angular 9 SSR

I have setup SSR for Angular 9 project. I am using NX workspace with Angular CLI for my application. When I run the application with serve-ssr option, and when I open the page and check a source code, I see sourceMappingURL output in…
microchip78
  • 2,040
  • 2
  • 28
  • 39
0
votes
1 answer

How do I go about sharing a class instance in a monorepo?

I have a JavaScript / TypeScript monorepository generated using something similair to Angular CLI, I have 3 apps: frontend, server and a Discord bot. The Discord bot is the core of this project, the bot is basically a discord.js class instance…
user13103906
0
votes
1 answer

Unable to format bootstrap css with Angular tags

I have added bootstrap via npm install --save bootstrap command and I have the following Angular component: navigation.component.html
0
votes
1 answer

generating NestJS module in nrwl nx throws unhandled exception error

I'm trying to generate a NestJS module from the cli in my Nrwl nx project and am getting an error saying An unhandled exception occurred: Schematic "module" not found in collection "@nrwl/nest". I'm trying to generate it with ng g…
Optiq
  • 2,835
  • 4
  • 33
  • 68
0
votes
3 answers

How can I force nrwl nx to respect tag updates?

When I update project tags in nx.json, TSLint seems unaware that the tags have changed, and lints and builds the project even though the dependencies are violated. Example Currently my nx.json file looks like { "npmScope": "patient-engagement", …
Dave Molinero
  • 474
  • 1
  • 4
  • 13
0
votes
1 answer

How to setup wallaby.js in nrwl nx monorepo with angular and nest.js

I try to setup wallaby in my nrwl/nx monorepo. I have a angular 8 and a nest.js app in this monorep. I use Jest for testing and latest Jetbrains Webstorm IDE. I could not find any instructions on how to get wallaby up and running in this setup. …
Andreas
  • 1,551
  • 4
  • 24
  • 55