All Questions
Tagged with angular-cli angularjs
180 questions
0
votes
2
answers
198
views
Angular ng build transpile TypeScript outside of app folders?
My hobby site that I'm trying to migrate to Angular has a bunch of standalone JS code (ESM modules) in it that is just sat in the default public assets directory, and as such it's automatically copied ...
0
votes
0
answers
39
views
not able to install angular cli on command prompt
I used the command npm install -g @angular/cli on the command prompt to install Angular CLI, but it just keeps loading for a very long time and is not getting installed. Can anyone help me with this?
...
0
votes
0
answers
1k
views
How to downgrade Angular materia Version 16.0.0 to 14.2.6
How to downgrade Angular materia Version 16.0.0 to 14.2.6 so that colud be compatible with current project in term of appearance and animations
I tried to downgrade angular version but no Effect on ...
1
vote
1
answer
639
views
Errors when attempting to install ng-bootstrap, package installation failed
I am working on an Angular app, for which I need an accordion. I attempted to install the ng-bootstrap package by running the command 'ng add @ng-bootstrap/ng-bootstrap', but every time I try running ...
0
votes
1
answer
441
views
How to transition AngularJS 1.8.x. -> Angular CLI version 11.2.3?
I’m trying to update the angular version for a web app. Is there a simple way to do this?
0
votes
1
answer
458
views
Angular-CLI: Change lazy chunk location
I'm trying to migrate from AngularJS to Angular. I've got a angularjs-module which is loaded via lazyloading (with ocLazyLoad) after the user loggs in. I managed to achieve this by changing the ...
3
votes
3
answers
5k
views
Angular project doesn't work after update from 11 to 12 version
I followed this steps to update my angular project.
npm cache clean --force
npm uninstall @angular/cli@latest @angular/core@latest
npm install -g @angular/cli@latest @angular/core@latest
After that ...
1
vote
1
answer
2k
views
error TS2322: undefined' is not assignable to type 'Product'
this is my service.ts file where getProductById method belong and gives error.
import { Inject, Injectable } from '@angular/core';
import { inject } from '@angular/core/testing';
@Injectable({
...
0
votes
1
answer
76
views
angularjs-route not loading with angular --prod flag (angular-cli)
Context: I'm migrating from ngJs to ng10, the application runs normally when I not use the --prod flag
The thing is: when i use --prod flag the routes doesn't load and i am super clueless why not.
The ...
3
votes
2
answers
17k
views
I am getting npm fund warnings when I am trying to install Angular packages:
I am getting npm warnings when I am trying to install packages:
changed 280 packages, and audited 280 packages in 2m
31 packages are looking for funding
run npm fund for details
found 0 ...
-1
votes
1
answer
3k
views
How to add or edit to a client side json file from Angular?
I am working with Angular 8. I have 2 JSON files on the client-side which are basically an array of JSON objects, from where I read and use in my component. I want to add (or edit) an object in those ...
0
votes
2
answers
716
views
Getting following error while running the code using "ng serve" command - "Unknown error: Error: EPERM: operation not permitted, read"
Following is the command I am running :-
C:\Users\Sainesh K\Desktop\angularp1\frontend> ng serve
Here is the error which I am getting on the console:
Unknown error: Error: EPERM: operation not ...
1
vote
0
answers
209
views
The build command requires to be run in an Angular project, but a project definition could not be found - build is incomplete
I am new working in angular project. Trying to build a angular project which is not complete because of the below message.
build-prod-linux:
[exec] The build command requires to be run in an ...
0
votes
2
answers
1k
views
Css won't compile when running angularjs and angular app side by side
I am running into a problem with my css when trying to convert to a hybrid angularjs/angular application using angular-cli.
ERROR in ./src/styles.scss (./node_modules/@angular-devkit/build-angular/...
3
votes
2
answers
2k
views
How to use ng-annotate with hybrid app based on angular-cli
I'm working on an Angular.js project written with TypeScript. We're trying to evaluate whether to upgrade to Angular 8 and we're stuck with how to use ng-annotate with angular-cli's webpack ...