nrwl Questions
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...
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
24
Solved
I get the error in the subject of this post when I use the CLI to create a new component: ng g c my-component --project=my-project (No component is created)
I've seen other posts with the same erro...
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
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
7
Solved
I've just created a new NX project for work and I've created a lib for out interfaces to have them on the backend and the front end.
I'm getting this error when I compile
apps/askeddi/src/app/pag...
4
I'm refactoring my Angular 11 application into libraries using Nx tool. My main app have @angular/localize as dependency and @angular/localize import in polyfills.ts. Every usage of $localize in my...
Sulphuryl asked 27/1, 2021 at 7:21
3
Solved
I am attempting to generate a new node project using @nrwl/node and when I use the generator I am met with the error
NX Cannot find module 'nx/src/utils/code-frames'
inhibiting me from running th...
6
I would like to add @angular/fire into my Nx workspace (Angular app).
I'm trying to keep in line with best practices, however, there's nothing in the official docs regarding adding this library in...
Nuris asked 18/2, 2021 at 9:21
2
Solved
I have a Nrwl Nx repo with different apps (angular, nodejs with express) and shared libs inside.
The repo was created with the nx cli and I want to build for production one of the express apps.
nx...
8
I have tried using Nx in an attempt to make use of Monorepos. I have been facing an issue to serve multiple apps via nx run-many command. Can anyone correct me if I'm doing something wrong?
Command...
6
Solved
is there any way to run an specific angular spec test file in Nx work space?
Recently i moved my Angular 4 cli application into Nx work space. Previously i used fdescribe to achieve this function...
Archaeological asked 17/2, 2018 at 7:16
3
I have created an NX Workspace using Angular preset. Where I have one app and two libraries. Inside my app, I am trying to use shorter paths for import.
With my current approach inside my app, I ca...
5
Solved
I created an angular nx monorepo and created two applications. When I start either of them I get the following error:
I already saw some stackoverflow posts were the answers suggested to just add ...
0
What is the best practice for managing databases in NX?
I am using Knex migrations to manage the schema of a database and would like to add this to the NX monorepo to simplify development, deployme...
4
Solved
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 hav...
Pilloff asked 27/11, 2017 at 23:11
4
Solved
I'm exploring Nx with Angular (relatively new to both) and trying to figure out how to generate a component library that:
Can run Storybook, and
Can be imported one component at a time, rather tha...
Rajiv asked 30/3, 2020 at 21:33
3
I have an app that was generated with Nx CLI. I can run tests for this app with Jest using the the command nx test myApp. This works fine. However, I would like to use Jest's "watch mode"...
2
I'm getting an error when using TS aliased paths within the same project: Projects should use relative imports to import from other files within the same project
I don't want this behavior. Any ide...
2
Intro
I was very confused with that rule when I recently ported the Ng code base to Nx 12.x. I hope this post helps others who begin migrating from Ng to Nx.
The code base above is a rather small s...
1
I have a basic setup in my new NX workspace
/apps/my-app (node type)
/libs/some-lib (node type)
Both created with nx cli commands:
i.e. nx g @nrwl/node:lib some-lib --simpleModuleName=true
For li...
Gabler asked 15/11, 2021 at 14:55
2
I'd really like to integrate firebase as well as firebase cli to my apps in Nx but don't know how. I use firebase functions/hosting/cli-tools, etc. Ideally I'd like to be able to use the firebase c...
Agathaagathe asked 13/12, 2017 at 6:13
8
Solved
I use nrwl.io in my project.
I created several libs:
ng g lib rest //ok
ng g lib services //ok
ng g lib models //created ok, but "Cannot find module " later on!
All of these libs were successf...
Scorn asked 30/8, 2018 at 8:38
2
Solved
I have created both in a testing environment but am still having trouble to differentiate between the use cases of the two. They both have the same file structure, slightly different tsconfig.json ...
1
Solved
I have a project using nx that has many packages in it. My problem is that I only have a single package.json file so if I want to build only one package I still have to build the root project using...
Gazzo asked 16/8, 2022 at 11:32
1 Next >
© 2022 - 2024 — McMap. All rights reserved.