Questions tagged [angular-devkit]

61 questions
2
votes
1 answer

Angular-devkit error while installing ngx-mqtt

I'm trying to install mqtt in Angular project using npm i ngx-mqtt but I got below error related to angular-devkit. I'm already using "@angular-devkit/build-angular": "^0.803.24" and it is installed and I'm using Angular 8. [Error: ENOENT: no such…
Ahmed Ibrahim
  • 256
  • 1
  • 2
  • 12
2
votes
1 answer

Cannot generate library. Invalid rule result: Instance of class Promise

when running ng generate library mylib i get the following error: Invalid rule result: Instance of class Promise. I'm thinking its a package issue but i don't know how to find which one is causing the problem. Heres my package.json { …
2
votes
0 answers

Build additional CSS file in angular build

Background @angular-builders/custom-webpack allows us to customize the webpack config of angular build, tutorial here. I am using it to build the additional scripts for web extension (Chrome/Firefox). Here is the extra.webpack.config.js that I have…
bilal.haider
  • 318
  • 1
  • 4
  • 18
1
vote
0 answers

Why is my stencil components library failing to generate a symbol that seems to be required when running a build with angular-devkit/build-angular

At Big Give we have a library of web components built using stencil and build-angular. Last week we were trying to upgrade from stencil v2 to stencil v3, but we started getting errors as shown below when trying to generate a build to publish for use…
bdsl
  • 288
  • 2
  • 9
1
vote
0 answers

Can an Angular schematic execute logic outside of the directory from where it ran

I've created an Angular schematic that needs to create a bunch of files outside of the root directory i.e. ../../root. when trying to run the schematic locally I keep getting a CLI warning: The 'path' option in…
Jnr
  • 1,504
  • 2
  • 21
  • 36
1
vote
0 answers

Problem with Angular Schematics Tree persisting in local file system before executing command

I'm using @angular-devkit/schematics to create a schematic for my NodeJS projects. The schematic is really simple. It just needs to add husky to the devDependencies of the project along with the script prepare: husky install, and then run the…
1
vote
0 answers

BUILD with @angular-devkit/build-angular:browser and SERVE with @angular-builders/custom-webpack:dev-server

I have an angular workspace with this structure: ├── projects │ ├── lib-1 │ ├── lib-2 │ ├── lib-wrapper │ . │ . │ └── src ├── app ├── assets . . where I develop my libraries and test it directly on my app (src).…
Edo2610
  • 184
  • 1
  • 9
1
vote
1 answer

Version compatibility issue for dependency @angular-devkit/build-angular in angular

I have created an new angular project and npm install is working fine but I am getting below error during build: C:\Users\212807091\Documents\GIT_Codebase\idm-gui\node_modules\@angular\cli\node_modules\rxjs\internal\util\hostReportError.js:4 …
Rohit
  • 406
  • 1
  • 5
  • 21
1
vote
1 answer

Packages installation failed from 14 to 15 without errors

I'm using yarn 3.3.0 as package manager. What weird is new yarn only support .yarnrc.yml instead of .yarnrc. But angular still try to find the old one. But it's no help removing .yarnrc ❯ ng update @angular/core@15 @angular/cli@15 --verbose…
1
vote
0 answers

ng serve has no ouput

I recently cloned a repo onto a new machine and now I have run into some issues in getting my development server up and running. When I run ng serve, there is no output in the terminal as seen below. This is strange to me because when I created a…
Andre
  • 91
  • 8
1
vote
0 answers

Error in ng serve command. ./ node module/@angular-devkit/build

node version 14.15.0 and angular version 12.0.5; earlier it worked fine but after reinstallation of angular and nodejs it shows this error on ng serve command. ERROR in ./src/assets/styles/style.scss…
jaya
  • 11
  • 2
1
vote
1 answer

Implementing AOT in angular 11 + Webpack 4 using @ngtools/webpack

I am trying implement AOT in my angular project which does not have cli support. I searched a bit and found @ngtools/webpack is the way to go. my angular is 11.0.4, Typescript is 4.0.5, webpack - 4.44.2. I installed @ngtools/webpack - 11.0.4. my…
learntech
  • 123
  • 1
  • 9
1
vote
1 answer

Angular Library 11: include index.d.ts in build

I want to create typings for my library which uses an external API from