nrwl-nx Questions
3
Solved
I am migrating an Angular workspace with Karma to an Nx workspace with Jest. I'm having a couple of issues, one of them being the use fakeAsync, which results in the following error:
Expected to be...
3
I'm trying to build a component library for angular and react. That's why I want to use the same styles(sass) for both libs. I created a separate folder for my styles and included my main sass insi...
Lind asked 26/6, 2022 at 16:13
3
Solved
How do I overrride the eslint rules in plugin:@nrwl/nx/typescript? I've made this change to the root of .eslintrc.json.
"rules": {
"@typescript-eslint/member-ordering": "w...
Nanna asked 4/6, 2021 at 18:7
8
Solved
I have two entities: User and Habit.
A user can create multiple Habits, thus I use a OneToMany relation on the User (and ManyToOne on the Habit, respectively).
User Entity
import {Entity, Primar...
Troopship asked 23/2, 2020 at 14:44
5
Solved
I've created an Angular library in Nx workspace to provide ui-components (ui-kit). To this library I added Storybook which was working fine. Now I also want to include Tailwind because the componen...
Diplomate asked 25/2, 2022 at 10:12
4
I'm trying to run the build of my Angular project using NX in the CI with GitHub Actions, but it fails with errors such as:
npm ERR! code 1
npm ERR! path /runner/_work/myapp/node_modules/nx
npm ERR...
Saliferous asked 13/2 at 15:18
4
Solved
I've a monorepo using nx with multiple node/nestjs apps. Some of the apps doesn't require all the packages used in the other apps. Because it's a monorepo, I need to install all packages for every ...
5
Solved
I am using Angular with nx and when I try to nx serve todos I get this error:
Project extension with invalid name found
And my project name is: todos.
I followed this https://nx.dev/angular-tutori...
Rase asked 16/7, 2022 at 12:4
5
Solved
I ran nx migrate to upgrade from angular 15 to angular 16 and now when I run nx s I get the following errors:
Error: apps/webshop/src/app/app.component.html:1:1 - error NG8001:
'eu-toolbar' is not...
Bertrand asked 5/11, 2023 at 23:10
6
I'm currently in the process of migrating a create-react-app (CRA - v4) monorepo Webpack setup to an NX Monorepo powered by Vite.
I'm currently stuck trying to figure out how to solve the typical
...
Cotidal asked 29/12, 2021 at 12:49
2
for a frontend architecture I'm evaluating the usage of monorepo with Nrwl Nx.
I understood from the docs that Nx strongly recommends the single-policy for dependencies (a root package.json with a...
1
If one create a nx workspace for angular (or adds a new project to an existing workspace), nx generates a tsconfig.editor.json in the project folder. This file is listed e.g. on the NX Angular tuto...
0
Problem
After using nx g @nx/eslint:convert-to-flat-config described here I got automatically generated config files like this (example for a library named "not-found"):
const { FlatCompa...
Aikens asked 26/3 at 9:29
8
Here is the case. I am using Nrwl NX Monorepo. I have 2 libraries: lib-a and lib-b; both are publishable libraries created via NX.
Now I create a MyClass.ts in lib-a. Naturally under paths in works...
3
I am a bit lost in the versioning system of nx (with angular). In my case, I want to upgrade from angular 12 to angular 13 with latest compatible tooling (jest, nx).
Agnular 14 is out now. So if I ...
4
I have an existing repository. I have cleared all the unwanted files as I wanted to start a new NX-integrated project. But, I want to continue using the same repository as there are some files whic...
Wreck asked 14/12, 2022 at 16:28
4
I am importing an existing application into an NX monorepo with a file structure a little different from default apps. It looks like this:
apps
my-app
src
feature-1
feature-2
main
components
...
Pacific asked 21/1, 2022 at 20:5
2
Solved
I have an NX monorepo with 2 apps:
Shop
Landing
I wish to use docker-compose to run my entire environment with eventually some APIs and a database etc etc.
I created a docker-file that takes argu...
Maitland asked 3/4, 2021 at 21:1
0
I've recently created an nx workspace and added in an Express application. This works out-of-the-box as you would expect. However, as soon as I add a dependency to a ESM library (e.g. nanoid v4+), ...
Trophic asked 13/2 at 2:4
1
seeking help regarding the topic.
There is an Angular project built with nrwl that includes Playwright e2e tests. However, I am unable to extend the existing unit tests (which are Jest based and we...
Locule asked 13/7, 2023 at 18:38
10
Solved
I'm wanting to add angular-material to my nx-workspace.
The angular material docs (https://material.angular.io/guide/getting-started) say I should run ng add @angular/material.
I've tried that in t...
Amp asked 5/3, 2021 at 19:19
2
Solved
I have a project that I've built with nx and I'm deploying it to Google App Engine.
It needs app.yaml in the same folder.
Is there a way to tell nx builder to copy that extra file to the build dire...
Zakarias asked 7/2, 2022 at 8:26
3
I want to rename libs folder that nx creates to packages.
Is it something possible with nx?
2
Solved
I have NX workspace with some apps and the product decided to change one of the apps name,
how can I do it without manually change the app's folders names, modules names, all the importing paths, N...
Haim asked 24/11, 2020 at 13:54
1
Solved
I am trying to upgrade angular (v15) and nx (v16) in my project, but the issue that I am running into is when I start my project NX throws an error:
> NX angular.json format is incorrect
Nx n...
Outrigger asked 28/8, 2023 at 14:55
1 Next >
© 2022 - 2024 — McMap. All rights reserved.