Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
37 views

Error NG0800: Importing providers supports NgModule or ModuleWithProviders but got a standalone component after migrating to standalone components

I’ve been migrating my Angular app to use standalone components following the official migration guide. I ran the following commands: ng g @angular/core:standalone and selected "Convert all ...
Hafsa Ben amara's user avatar
2 votes
1 answer
71 views

Is it possible to work with different versions of Angular?

I have version 17 of Angular CLI installed globally on my machine, however I would like to use version 15 of Angular in a specific project, how can I do this locally without having to change the ...
viniideveloper's user avatar
0 votes
0 answers
36 views

Migrating project using angular 15 to angular 17

Can we directly able to migrate from angular v15 to angular v17 by using ngupdate command or first we need to do v16 I'm using node version 16 as of now. I'm trying to update angular 17. I want to ...
swetha a's user avatar
0 votes
0 answers
67 views

Error EADDRINUSE: Address Already in Use when Running Angular SSR App

I have an Angular SSR application that works well initially. However, when I start my app with npm run dev:ssr, the app compiles successfully, but when I try to change something in my code, I get the ...
R.Almofleh's user avatar
0 votes
0 answers
75 views

ngx-mat-timepicker is not giving same style, I don't know how to add theme styling

I'm following this article: https://dhutaryan.github.io/ngx-mat-timepicker/#/getting-started#theming I'm getting different type of styling, the circle around the clock is missing and buttons on click ...
Joy Dimitris's user avatar
0 votes
1 answer
48 views

add config route to ng serve

I would like to add a specific route to the ng serve command, because I need to deliver a json file from that endpoint. It contains runtime config for the angular app. In the prod env this is easily ...
Martin's user avatar
  • 139
1 vote
0 answers
64 views

Angular ng serve throws application bundle fail, unexpected end of file in JSON

I'm using the latest versions of Json and Angular, uninstalled/ reinstalled both, uninstalled and reinstalled VS Code and read every relevant reference on here and source forge. The Angular project ...
TheWizardOfTN's user avatar
1 vote
2 answers
65 views

Relative path of Parent Component is added to asset path when page is reloaded

So I have Ng routing for Angular18 configured as below for app.routes.ts which is default routing import { Routes } from '@angular/router'; import { LoginComponent } from './login/login.component'; ...
Binary Dharma's user avatar
1 vote
1 answer
33 views

ng drawerservice component called twice

ViewPurchaseOrder(item: any): void { this.drawerService.create({ nzTitle: 'View Purchase Order', nzMaskClosable: true, nzWrapClassName: "full-drawer noSidebar", ...
Shawn's user avatar
  • 1,665
1 vote
1 answer
2k views

Object literal may only specify known properties, and 'entryComponents' does not exist in type 'NgModule'

After upgrading angular version from 11 to 17.3.8 it's throwing error line in my code wherever iused entry component in @NgModule. Becoz of this it's throwing error in all npm module while running it ...
Priya's user avatar
  • 55
0 votes
1 answer
47 views

The term 'ng' is not recognized as the name of a cmdlet, function, script file, operable program

why ng command is not working ? I want that the command should work but it shown up an error like, The term 'ng' is not recognized as the name of a cmdlet, function, script file, or operable program. ...
Sakshi Dubey's user avatar
0 votes
1 answer
40 views

Can't capture a drop event in an ng flowchart angular

The problem is when I drag and drop one of the nodes from the palette in the canvas grid and I just want to capture this event but nothing displays in the console=>not captured. This is for the ...
emna's user avatar
  • 21
0 votes
2 answers
373 views

Angular ng build gives error link.parentNode.insertBefore is not a function

I have an Angular v16 app that currently works fine when I serve it on my local machine. Anyway when I try to build it, it gives me the following response: ✔ Browser application bundle generation ...
Francesco Cappellini's user avatar
0 votes
0 answers
30 views

The event binding is not working on my system but works on an online compiler

I am a beginner and using version 18 of Angular but Event binding doesn't work when i try it on my system. Here is the code i was trying product-list.component.html <img [src]="product.pImage&...
Yash Saxena's user avatar
0 votes
0 answers
23 views

ng xi18n --i18n-format=xlf throw module not found error

when I try to ng xi18n --i18n-format=xlf I get an error. When I run to app with ng serve there are no problem It is an angular-cli 1.4.2 30% building modules 167/184 modules 17 active ...t/create-...
Thomas Kleist's user avatar
0 votes
1 answer
160 views

How to resolve memory heap fatal error in angular

Currently, I have a fatal error displaying when I start my project. I have tried all possible solutions, so please let me know how can I resolve this. ng serve ⠴ Generating browser application bundles ...
Nimra Jabbar's user avatar
1 vote
1 answer
116 views

ng appName --createApplication=false

when I try to create folder/package in angular version 18. with the below command ng new appName --createApplication=false I am getting error like: Error: Unknown argument: createApplication is that ...
pawan krishna's user avatar
0 votes
0 answers
21 views

✖ Unable to load package information from registry: The "timeout" argument must be of type number. Received type string ('100000') [duplicate]

I'm getting this error while installing pwa using ng add @angular/pwa. the Error is ✖ Unable to load package information from registry: The "timeout" argument must be of type number. ...
Muhammad Shahab's user avatar
3 votes
1 answer
72 views

Why `ng build` writes information to error log

When I run for example a production build ng build --configuration production, then angular writes some information to the error log: - Generating browser application bundles (phase: setup)... ✔ ...
Lorenz Pfisterer's user avatar
2 votes
1 answer
13k views

Angular upgrade from 16 to 17 using ng update with specific version of @angular/cli

I recently encountered an issue while upgrading my Angular project. After specifying the upgrade to use Angular CLI version 17.3.4 (ng update @angular/core@17 @angular/[email protected]), the CLI updates is ...
c1992's user avatar
  • 21
0 votes
1 answer
334 views

Docker: ng build: Segmentation fault error

I have the Problem that i can't build the docker image of my angular frontend. The command RUN npm run ng build --aot --base-href=/ --configuration=dev throws a Segmentation fault error What I ...
Palmos's user avatar
  • 11
0 votes
1 answer
34 views

No angular moduel is being created when using command ng new

I am using the command ng new <project-name> to create a new angular project. When the project is created, though it runs properly, there is no angular module present in the project. The ng new ...
Ankit Kumar Maurya's user avatar
0 votes
0 answers
68 views

getting error/not creating server files while doing ng add @nguniversal/[email protected] or @nguniversal/express-engine

here I'm trying to install ng add @nguniversal/[email protected] package to my angular project which is running on angular 14.0.0 But I'm getting error as Schematic input does not validate against ...
rakshit's user avatar
  • 59
0 votes
0 answers
63 views

Angular - NG SERVE doesnt work outta nowhere / node:internal/errors:563 ErrorCaptureStackTrace(err);

I started learning Angular 8+, and everytime i start a new project, the very next day i cant NG SERVE anymore. I've tryed lots of tutorial to fix, but nothing works. Sometimes, i change zero lines ...
Vinicius Zamai's user avatar
0 votes
0 answers
111 views

× Migration failed: Invalid response body while trying to fetch https://registry.npmjs.org/@typescript-eslint%2feslint-plugin: Socket timeout

I am trying to upgrade from angular 15 to angular 16. i get this error after running "ng update @angular/core@16 @angular/cli@16" I tried clearing cache, maxing the timeout I even deleted ...
Hachem Omri's user avatar
1 vote
0 answers
178 views

Angular 17.2.4 ESBuild ng serve does not recompile after error

With Angular version 17.2.4 and using ESBuild when a compile error is corrected and the app is launched with ng serve, the old version is launched and a Vite error popup is displayed showing the error ...
user7443660's user avatar
2 votes
0 answers
294 views

angular 16 app fails to start with 'ng s' after "npm ci"

I have Angular 16 app, and its package.json looks like following: "dependencies": { "@angular/animations": "^16.2.12", "@angular/cdk": "~16.2.11&...
Andy Huang's user avatar
1 vote
0 answers
201 views

An export assignment cannot be used in a module with other exported elements

I'm trying to build my project and suddently I'm faced with this problem: Error: Error: node_modules/@testing-library/jest-dom/types/matchers.d.ts:713:1 - error TS2309: An export assignment cannot be ...
João Esperancinha's user avatar
0 votes
0 answers
48 views

How to use 2 or more different bootstrap theme in one angular 16 project?

i'm doing with 2 theme firstly but i want to do for 3 modules so, I have 2 modules : Admin and Users. Both have 2 different theme of bootstrap like in admin pages using as dashboard purpose and for ...
naman namdev's user avatar
1 vote
1 answer
688 views

Were upgrading from NG 12 -> 16 and "@ng-bootstrap/ng-bootstrap getting : Package "@ng-bootstrap/ng-bootstrap" has an incompatible peer dependency

When going from 12 -> 13 (eventually 13). perhttps://update.angular.io/?v=12.0-13.0 ng update @angular/core@13 @angular/cli@13 Were getting dependency errors: Package "@ng-...
g. Skud's user avatar
  • 11
0 votes
0 answers
100 views

I tried to install node previous version run the angular app, the error persists, help me in resolving this..?

` { "name": "magicfilm", "private": true, "version": "0.0.0", "type": "module", "scripts": { "dev": "vite", "build": "vite build", "lint": "eslint src --ext js,jsx --report-...
Kalyan Chakravarthi's user avatar
2 votes
1 answer
1k views

After Angular upgrade to 16 - error NG8004: No pipe found with name 'txtTranslate'

I have updated my Angular app from Angular 15 to 16. I got few compilation errors with few node packages and i resolved them. Even after that getting many errors as below as ng serve error NG8004: No ...
Priya Ganesan's user avatar
3 votes
2 answers
12k views

ng serve giving error on newly created angular project

On my Windows 11 machine, I have install nodejs and Angular. created a project with ng new command and then tried to run it with ng serve. It is giving me following error c:\working\projects\xxxxxxx\...
user2845672's user avatar
1 vote
2 answers
3k views

Upgrade angular 15 to 16 but got errors

I have upgrade the following before update Node to 18.18.0, NPM to 10.2.3 typescript to 4.9.5 After that upgrade the @angualar/cli@16 --force for the existed project. But got following errors the ...
Love Chaudhary's user avatar
1 vote
0 answers
68 views

UNMET PEER DEPENDENCY @angular/[email protected]

Trying to build and run an angular project with the following package.json. package.json After running npm i, seems package get installed with some warnings. No errors. I am seeing errors, which I ...
powerflow's user avatar
0 votes
1 answer
609 views

Angular app install and run: Error TS2694: Namespace..has no exported member 'ɵɵFactoryDeclaration

Trying to build and run this angular project. After building the project, with npm i I got some warning, no errors. After running ng serve -o I get the below errors. And on browser, I get Cannot GET /...
powerflow's user avatar
0 votes
0 answers
147 views

Cannot find module 'typescript' error while running ng build (tsc version 4.2.9 is installed)

I have angular 16, node 18 and typescript 4.2.9 installed on my MacBook. But whenever I do ng build, I get the error An unhandled exception occurred: Cannot find module 'typescript'. Error Message: An ...
matrix's user avatar
  • 3,080
0 votes
1 answer
686 views

Cannot run ionic angular app in browser using the ionic serve command

I am trying to run my first ionic angular app in a browser to see if I had installed ionic 6 properly on my computer. But I get this error message when using the ionic serve command. I included a ...
phyulwin's user avatar
0 votes
1 answer
281 views

Angular changes not reflected on server live code

My changes above in screenshot. Just changed the text to Download PDF before it was something else. Replaced the folder here with the complied code Used this command to compile: ng build --base-href=/...
user022yufjb's user avatar
0 votes
0 answers
467 views

ng serve error: You seem to not be depending on "@angular/core"

I keep getting the error You seem to not be depending on "@angular/core" I have tried everything on the stackoverflow it says from using npm install, npm link to everything. Does anyone know ...
user022yufjb's user avatar
0 votes
1 answer
57 views

Angular json mapping ngInit

I need mapping my json in Angular. I tried many codes and my own also but nothing works and I dont know why. { "Id":1 "Name" : "nba" "League":{ "Id": ...
Andy Smith Hitchens's user avatar
0 votes
1 answer
52 views

How can I overcome ng not found

I have used "npm install -g @angular/cli" to install the angular cli even though I have used the -g it is not installed globally and shows ng not found error constantly I have uninstalled ...
Gnaneshwari Gunasekaran's user avatar
0 votes
1 answer
68 views

Bash SyntaxError in node module (Angular clone)

I have cloned an Angular project and got the following error message "C:\Program Files\nodejs\npm.cmd" run start > [email protected] start > node --max_old_space_size=4096 ./...
Hyoto1507's user avatar
0 votes
0 answers
831 views

ng command not working as expected in cmd

Whenever I enter an ng command prompt like "ng new " it redirects me to the ng.js file in the visual studio code and after I close it up and return back to the cmd, all i see is this: I was ...
WastedxBusted's user avatar
1 vote
1 answer
373 views

Angular translate service doesn't works on separated routes

I'm developing an application with Angular, and my project supports multiple languages. I separated the admin routes from the app.module.ts file and created them in a different file. However, due to ...
Fatih EGE's user avatar
1 vote
0 answers
506 views

ng lint : fails with Cannot find "lint" target for the specified project

My angular version is 13.x when i try to lint the files using ng lint i m getting the following results Cannot find "lint" target for the specified project. You should add a package that ...
shamon shamsudeen's user avatar
0 votes
1 answer
342 views

Generate a production build for angular without including any dependencies in the bundle

I am creating a new angular application and want to be able to load all project dependencies such as angular libraries, rxjs, moment-js, etc externally from a common location (CDN) in the production ...
Prasanth's user avatar
2 votes
1 answer
1k views

Angular. ng serve. Module build failed. Cannot read properties of undefined (reading 'file') [duplicate]

I have the following error when running "ng serve": ./node_modules/@angular/common/fesm2022/common.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/...
Ser's user avatar
  • 37
1 vote
0 answers
265 views

Angular Eslint not working - just high disc usage without any output

Every time I try to run eslint via commandline ng lint nothing happens. The commandline freezes and my disc usage jumps up as far as even possible. Sometimes reading up to 1000MB/sec. It worked a few ...
J-Eibe's user avatar
  • 182
0 votes
1 answer
918 views

Why do any of the Angular imports are not working?

I just se tup a project, and it is compiling succesfully, but every time I try to add a directive, it shows this error, for example for [formGroup]: "Property formGroup is not provided by any ...
Gergő Szabó's user avatar