Questions tagged [nx-devkit]
8 questions
4
votes
1 answer
How to setup a nx workspace for plain javascript (Cannot find module 'typescript')?
I want to create a nx workspace for plain react apps.
Create Workspace
npx create-nx-workspace@latest # installs 15.2.1
# style: package-based
# distributed caching: NO
Install react-package
npm install -D @nrwl/react
Create js react app
npx nx g…

wuarmin
- 3,274
- 3
- 18
- 31
1
vote
0 answers
How to add an existing library as a remote for a host in NX workspace?
Is there a way to convert an existing app to become a host in NX workspace? When I run the command of generating a host with the name of an existing app it says:
Specify a unique name for the project to allow Nx to differentiate
between the two…

Mohammad K.
- 238
- 3
- 12
1
vote
0 answers
Use nx app generators/plugins in package-based monorepos?
Is it possible to use nx code generators/plugins, i.e. @nrwl/react:application my-app in a package-based monorepo?
The docs (https://nx.dev/concepts/integrated-vs-package-based) say following:
At the most basic level, package-based repos utilize…

wuarmin
- 3,274
- 3
- 18
- 31
1
vote
1 answer
How to delete a file in NX generator
According to https://nx.dev/recipes/generators/creating-files
Generators provide an API for managing files within your workspace. You can use generators to do things such as create, update, move, and delete files.
it's possible to delete files in…

Andrew Allen
- 6,512
- 5
- 30
- 73
1
vote
2 answers
How to run NX angular applicationGenerator synchronously
I'm trying to replace an old angular-devkit schematic with a new nx generator using nx-devkit.
I'm following the guide here: https://nx.dev/generators/composing-generators
We should be able to await the nx generators, however when I do, the…

Brino
- 2,442
- 1
- 21
- 36
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 {…

sathish
- 9
- 2
0
votes
1 answer
Error while creating a new component in angular app
This error is showing when I try to run nx g c @nrwl/angular:app Admin to create a component in my angular app.

Aditya Rawal
- 27
- 6
-1
votes
0 answers
problem after update to storybook and nx 15.9.2
I installed storybook for all libraries for my nrwl/angular project.
It basically just updated nx from 15.9.2 to 15.7.1.
I can build/start my project witout any problems, but lint now throws this error:
Failed to load plugin '@nrwl/nx' declared in…

Andresch Serj
- 35,217
- 15
- 59
- 101