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
6
votes
2 answers

Jest test succeed with error printed to console

I'm trying to use jest with an Angular project created by @nrwl/nx. I have followed this article to convert my app from using karma to jest. The issue I'm getting is that even though my tests are passing, for some reason the following error shows in…
Kakalokia
  • 3,191
  • 3
  • 24
  • 42
6
votes
2 answers

Angular 6 - Specify path for lazy loaded chunks

I have a main module with submodules, originally I wanted to make that modules eager loaded, so what I did: 1st Attempt - Eager loading import {DashboardModule} from './module/dashboard/dashboard.module'; export const _dashboardModule = () =>…
Andurit
  • 5,612
  • 14
  • 69
  • 121
6
votes
4 answers

How do you generate services etc. for a @nrwl/nx angular-cli app?

Normally when using @angular/cli to develop an application, you add a new service in the following manner: ng generate service foo This would generate "FooService". My question is, when you have generated a library using @nrwl/nx, how do you add a…
Bryan Rayner
  • 4,172
  • 4
  • 26
  • 38
5
votes
1 answer

buildLibsFromSource - what is it about?

I migrated to nx version 14.1.9 and now I have the buildLibsFromSource setting in my project.json; but I don't actually understand why I should use it or when and the documentation is limited. As the default value is normally true, there is probably…
timtos
  • 2,225
  • 2
  • 27
  • 39
5
votes
0 answers

Is there a way to use Nrwl Nx's AST utils for Angular in Nx >13

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/utils/nx-devkit/ast-utils'; At the time I think the…
5
votes
0 answers

how can i use absolute paths in same library in NX monorepo

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 files in same library: libs/shop/containers/Basket.js…
efdali
  • 51
  • 3
5
votes
1 answer

what does eslint parseroptions.project do?

After migrating my Angular 12 project from TSLint to ESLint, an eslintrc file was created per project, each with a line setting the parseroptions.projects to a route like this: { "extends": ["../../.eslintrc.json"], "ignorePatterns": ["!**/*"], …
5
votes
1 answer

Nrwl NX nodejs production build remove comments and minify

Inside a Nrwl NX monorepo there's a nodejs app. When building for production, how can this be achieved: Remove comments Minify the app I don't get how webpack configuration works in the Nrwl NX namespace or how to install webpack modules like…
Rares P
  • 303
  • 3
  • 15
5
votes
0 answers

Cant resolve "SyntaxError: Unexpected token 'export'" using jest in @nrwl monorepo angular 11

I am porting an app from an old-style angular repo to @nrwl/nx. I have one app and one lib that gives me issues: ({"Object.":function(module,exports,require,__dirname,__filename,global,jest){export { Hash } from './lib/hash'; I am…
ed4becky
  • 1,488
  • 1
  • 17
  • 54
5
votes
2 answers

How can I get Jest to transpile node_modules/@nativescript/core properly? Jest + NativeScript + Angular + Nx

I am currently attempting to setup a multiplatform codesharing starter project using the Nx monorepo tool. This project uses Angular for the web, and NativeScript for crossplatform mobile. Ideally I would like to be able to use Jest to run all unit…
James
  • 91
  • 5
5
votes
1 answer

Angular Elements - Are they a lib or an app in NRWL/NX?

Trying to build a suite of angular elements (web components) in an NX workspace. I tried first as a lib, but couldn't 'build'. I retried as an app - but I cannot create a storybook for it since its not a lib. What's the path to peace?
ed4becky
  • 1,488
  • 1
  • 17
  • 54
5
votes
1 answer

@nrwl/node:build: How to change output file name?

I am working in a nx monorepo with Angular CLI and a Node backend. In angular.json, I use a custom webpack config to change the filename of the bundle. Calling ng build app (which invokes @nrwl/node:build) works fine and bundles the file with the…
ChrisDoernen
  • 61
  • 1
  • 5
5
votes
0 answers

How to configure VS code debugger with watch in Nrwl - Fullstack Nest+angular application?

How can I configure my vs code launch.json to support generated in Nrwl Nest API debugging with watch flag ? Currently this configuration works for me, but i have to rebuild my application manualy. { "type": "node", "request": "launch", …
KrzysiekES
  • 51
  • 2
5
votes
2 answers

VS Code + Chrome debug + nrwl architecture

Have you been able to debug an application in chrome developed using nx.dev? https://nx.dev/angular It looks like when you choose for NX you lose debugging capabilities. The generated .map.js files contains relative paths to source files but are…
IgnacioHR
  • 568
  • 4
  • 20
5
votes
0 answers

How can I extend angular schematic properties?

My question is it possible to extend schema properties? What I tried: collection.json { "$schema": "http://schema.angular.io/schematics/collection/2", "name": "@my/schematics", "description": "my default collection, containing all schematics…