Questions tagged [nx-angular]

11 questions
3
votes
1 answer

Nx Module Federation with Angular - No provider for HttpClient

I have setuped a micro front-end Nx (13.10.3) workspace with Angular (13.3.0) and @nrwl/angular (13.10.3) module federation. When I try to load a route which is loading a remote module I am getting the error below. I have added HttpClientModule in…
ivayloc
  • 365
  • 4
  • 14
1
vote
1 answer

Docker-compose, Nx, Angular error "localhost didn’t send any data."

I am trying to run Angular app with Nx using docker compose. docker-compose.yml : services: client: build: context: . dockerfile: Dockerfile volumes: - .:/app - /app/node_modules ports: - 4242:4200 …
1
vote
0 answers

Cannot create property 'outputPath' on string 'production' when trying Add Nx to Angular app by ng add @nrwl/angular command

When I'm running command ng add @nrwl/angular, I'm getting error "Cannot create property 'outputPath' on string 'production'" Configuration of outputPath and production are standard for angular project. "outputPath": "dist/project", …
0
votes
0 answers

Prevent library from publishing if peerDependencies are missing

I've created this NX workspace with some libraries which are published to NPM and github. The following state of the repository causes the following error on installation npm i @mintplayer/ng-json-ld npm ERR! code ERESOLVE npm ERR! ERESOLVE unable…
Pieterjan
  • 2,738
  • 4
  • 28
  • 55
0
votes
0 answers

How can I use only one node server for Angular SSR in NX Angular

I have an NX Angular monorepo with almost 40 applications. I want to use Angular SSR for the apps, but based on the standard implementation, this means I would have to run and maintain 40 node servers on the server - one for each app. Is it good…
0
votes
1 answer

NX Feature Create: Receiving 'NX Expected a synchronous delegate but got an asynchronous one.'

Hello I am attempting to do a simple feature library generation using NX for angular I use the UI, but the command it spits out is nx generate @ngrx/schematics:feature --name=form --project=reps-feature --no-interactive This is the error I…
0
votes
0 answers

How to communicate between micro front end applications angular

I have 3 independent angular application running using MFE architecture. I want to communicate each other . What is the best approach to communicate between each other other than using local storage. All these apps are running and managed by…
0
votes
0 answers

Dynamically setting build options with @nx/angular:webpack-browser executor

A project I work on was just migrated to NX workspace and I’m facing some challenges to implement custom logic we have to set global styles options dynamically on NX. Previous implementation was using ngx-build-plus and with a pre hook defined in…
0
votes
1 answer

Getting "Unable to import class CommonModule" error while importing a one library into another library

Nx serve throws below error when I used Icon lib inside Button lib. enter image description here Em*-Icon's module** import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import {…
0
votes
0 answers

Cannot create NX workspace although it says it has successfully created workspace

Cannot see the created NX workspace although it says it has successfully created workspace. I am using Ubuntu 22.04 LTS, Node v16.17.0. Here's my terminal output: npx create-nx-workspace@latest MyORG ✔ What to create in the new workspace ·…
Nandan Wewhare
  • 445
  • 5
  • 11
0
votes
1 answer

Creating a Storybook instance including stories from multiple libraries in a Nrwl Nx workspace

I have a storybook instance for every NX libs (core,icons), and I would like to have only one storybook instance that collect all the stories present in different libs. I am using NX 13 Angular 13 @nrwl/storybook 13 Do you know if it is possible ?
Gelso77
  • 1,763
  • 6
  • 30
  • 47