Questions tagged [angular-cli]
The Angular CLI is a command line interface for building, managing and deploying Angular (version 2+) applications.
7,133
questions
0
votes
0
answers
17
views
Angular ng serve throws error undefined (reading '100')
PS D:\freelancing> ng serve -o
An unhandled exception occurred: Cannot read properties of undefined (reading '100')
See "C:\Users\akash\AppData\Local\Temp\ng-HXRwUk\angular-errors.log" ...
1
vote
0
answers
25
views
Angular after update: You need to specify a command before moving on
After updating angular to version 14.1.3 every time when I run ng serve I have this error:
You need to specify a command before moving on. Use '--help' to view the available commands.
I have did:
npm ...
0
votes
0
answers
11
views
"ng lint" is not picking up the "tslint.json" file for linting
I have newly created an angular application. Since it's the beginning, to follow and maintain good coding practices, I want to implement the linting. So, I created a new tslint.json file (it was not ...
-1
votes
0
answers
13
views
Error trying to run MEAN stack app on local - related to ng build
I developed a working MEAN stack app for a college course a few years ago. I'm trying to get it to run again, and I've had some issues. I think I have all the dependencies updated, but now when I run ...
0
votes
0
answers
21
views
Erro in ng serve -o angular v11
I'm in a "legacy" project on the Angular 11 version, when I do the command ng server -o I get the following error.
Erro CLI
When I see the error.
Erro explained
Something related to mini-css-...
0
votes
0
answers
13
views
Using multiple custom angular builders
I have been using the ng-cli-hooks custom builder for quite some time to inject the CSP into the index.html file and generating a custom webpack config.
Now I am looking into @ngx-env/builder to allow ...
0
votes
0
answers
15
views
ng.js line 1 char 1 invalid character
I cannot create angular modules, i cannot execute some commands I really need to see dependency problems
This really needs to be solved, why is this happening? I am working in a aws desktop, with ...
0
votes
0
answers
9
views
How to show Description or logger on console before x-prompt question in angular-cli schematic generator?
My want to show a Description(or 2 line info) on console before prompting question of schema.json(used x-prompt).
If there is any way I can do it?
see attached screenshot[![https://i.stack.imgur.com/...
1
vote
0
answers
53
views
Tailwind Elements components don't get triggered in Angular
I tried to add Tailwind Elements to my Angular project to be able to use some of their components (eg: Date picker).
Unfortunately, it doesn't seem to work. I have some elements working (like the date ...
0
votes
0
answers
18
views
Will closing VS Code while running ng new mess with the app?
If I run ng new new-app and then close VS Code once I see the main files have been created (in the explorer)
I tried doing this once the main files were created.
Once I restarted I ran npm install and ...
0
votes
0
answers
20
views
How to change the build configuration for assets in angular
Currently, all images are stored in src/assets/images
I will need several websites that use different assets
For example, winwin1 will use the logo in
src/assets/winwin1/assets/images/info.png
winwin2 ...
0
votes
1
answer
27
views
How to solve version error in angular cli?
I am facing this "Angular version error", how can I solve this?The above image shows the current version of ng cli and the error that I am getting.
1
vote
2
answers
583
views
ng build --prod Error: Unknown argument: prod
I have been running this command to build my project anytime i make changes:
ng build --prod --aot=false --build-optimizer=false
This has been working great until I made a mistake today.
I ran npm i --...
0
votes
0
answers
18
views
Problem with basic Angular CLI commands on PC
I have a weird problem which cannot solve. When I type ng <any command> in cmd (in PowerShell too) on PC then it open ng.js file.
I also search for similar problem and find another post error in ...
0
votes
0
answers
35
views
msal library popup blocked issue after angular upgrade 13
Blocked popup img
Facing issue after angular upgrade 13. Whenever angular application makes sso call to microsoft azure, popup window got stuck and this issue is occurring.When i clear cookies and ...
0
votes
1
answer
41
views
Angular proxy to external API is not working
I followed the instructions step by step, but requests are still not proxied.
Using Angular 14
"@angular/animations": "^14.1.0",
"@angular/cdk": "^14.1.1",
...
0
votes
0
answers
25
views
Error! Optimization error on ng Build. Project is running fine on ng serve and working well but on ng build it is giving error
Error! optimisation error on ng Build. Project is running fine on ng serve and working well but on ng build it is giving error.enter image description here See the image file for error in terminal. ...
-1
votes
1
answer
38
views
Failed To Compile New Angular Project
I created a new Angular project through ng new.
But whenever i try to compile it through ng serve, it keeps showing these three errors in the terminal window.
Error: Module not found: Error: Can't ...
0
votes
1
answer
28
views
Some of my ng aliases are not working for angular in vs code
So i just started watching the angular beginner course on pluralsight and when i tried to do what was done which is ng build --prod --source-map it gave me this Error: Unknown argument: prod. I did ...
0
votes
1
answer
285
views
Meaning of error in Angular: "application depends upon a library published using Angular version"
Can someone please explain me meaning of this error?
This application depends upon a library published using Angular
version 14.0.7, which requires Angular version 14.0.0 or newer to work
correctly. ...
-1
votes
0
answers
24
views
running ng version throws back a syntax error
Im running arch Linux and was trying to run:
ng version
when I got this error:
enter image description here
0
votes
1
answer
74
views
How to build angular main.js under assets folder
I have an Angular app, is there a way that I can force Angular to deploy the main.js under /assets folder?
basically I want to make Angular-CLI compile main.ts to main.js in assets folder.
"build&...
0
votes
1
answer
42
views
ng serve Project target does not exist
Since upgrading my app from Angular 10 -> 14, I am unable to ng serve my application. Running ng build runs successfully.
Running the following results in the following error:
ng serve -> Cannot ...
1
vote
0
answers
11
views
Angular cli shows random numbered minified js files for ng serve dev mode in browser
I am using Angular 12 application, after migrating from angular 9, when i did ng serve, I am not able to debug application. JS files are minified and file names are changed as 234.js. Even if I add ...
1
vote
2
answers
745
views
Angular 14, ng serve error - @ngtools/webpack/src/ivy/index.js - Error: Maximum call stack size exceeded
I'm working with angular 14 and node 16 and typescript. I was working normally, but now when i execute the ng serve command, i get the following error:
./src/main.ts - Error: Module build failed (...
1
vote
1
answer
46
views
new angular 14 project made by cli missing multiple packages
I have updated my global angular version to 14.1.0 and just created a new project
inside my project I tried to do this:
ng g m views/my-module
but the module is not created and this error occurs in ...
0
votes
0
answers
35
views
ng test --no-watch --watch=false never exiting in gitlab CI
As the title says, I simply want to run ng test from within gitlabCI.. but all the flags I've seen mentioned don't affect anything.. the routine just sits and sits. are these flags enough or do I ...
0
votes
1
answer
18
views
How to automagically update Angular libraries just like whole projects when upgrading?
When you run ng update on Angular projects it automagically changes the code base as required. How can you do the same for a TypeScript Angular Library?
If I run ng update on my library it just throws ...
0
votes
0
answers
37
views
Ng serve does nothing
I have a problem to run and even build my project. Every ng command that I try to be executed does nothing and even displays nothing. Only one exception is for ng version command, that shows versions ...
5
votes
2
answers
3k
views
ng build --prod --aot => Error: Unknown argument: prod
When I try to build my angular project in production environment:
the console returns this error:
ng serve is working fine and ng build without parameters seems to work too. Why does angular return ...
0
votes
0
answers
24
views
Angular ng build --prod throws unhandled exception
when I do an ng build --prod I get the error.
I work with angular 11.
An unhandled exception occurred: UNKNOWN: unknown error, scandir
'D:\FITFIT\fitfit\fitfit-app-front\dist' See
"C:\Users\...
0
votes
0
answers
44
views
Two-way TLS Angular + Spring Boot
I am trying to make an application that can be made through mTLS. Self-signed certificates are valid and recognized by the browser.
This is the configuration from Spring Boot:
server.port=8443
server....
0
votes
1
answer
39
views
How to get rid of "The Angular CLI requires a minimum Node.js" error during the creation of a docker image
Whenever I run the following command to create a Docker image,
docker build -t ehi-member-portal:v1.0.0 -f ./Dockerfile .
I get the following results
I'm not sure why it is complaining about Node ...
0
votes
0
answers
20
views
Change component filename
I am trying to change the file name when generating a component used for cli angular.
For example, I need a component with the name my-component-name.page.(htlm,scss,ts). I'm using the --type option ...
0
votes
0
answers
24
views
When i create an angular project, it is not getting built successfully?
I reinstalled windows recently and have been facing this issue with angular since then.
My old projects are running fine, but when I create new project I am getting the following error.
I have tried ...
0
votes
1
answer
32
views
@angular/CLI issue while migrating Angular from 11 to 12
In the process of angular migration from 11 to 14. I started with 11 to 12.
I ran the below command to update from angular 11 to 12
ng update @angular/core@12 @angular/cli@12,
Got terminal message ...
-1
votes
0
answers
45
views
Error: Uncaught (in promise): TypeError: Object prototype may only be an Object or null: undefined
I have angular project and show this error:
`ERROR Error: Uncaught (in promise): TypeError: Object prototype may only be an Object or null: undefined
TypeError: Object prototype may only be an ...
0
votes
0
answers
13
views
I want to host a portal locally to do that i did some following cmd when i gave "ng -v" or "ng serve" i got resulted with the error tha
List item
ng serve command is not working and resulted with and error
enter image description here
enter image description here
0
votes
1
answer
38
views
PhpStorm not loading Angular project files
Every time I open my projects, app folder contents does not load. I closed project, deleted .idea folder, invalidated caches, but still having same bug.
Please, has anybody ever met this before ?
0
votes
1
answer
65
views
Angular 14 fails to create new project
Environment :
Windows 10
nodejs 16.16.0
npm 8.14.0
angular 14.0.6
Problem :
When creating an angular new project
ng new myproject
I face a TLS error
npm ERR! code ...
0
votes
1
answer
40
views
Angular 14 / windows : error while creating new project
Environment :
windows 10.0.19043 Build 19043
Node v14.20.0
npm 6.14.17
Angular 14.0.6
While creating a new projet with angular 14
ng new my-project
I face that error:
npm ERR! cb() never called!
...
0
votes
0
answers
45
views
An unhandled exception occurred: Cannot read property 'add' of undefined See "C:\Users\XXX588\AppData\Local\Temp\ng-uEZQDG\angular-errors.log"
I encountered the below error while serving the angular11 app to start. Please let me know how can I get rid of this error. Please find the package JSON and error log attached.
"devDependencies&...
0
votes
0
answers
32
views
Angular - Running ng serve ui-app-1 Uncaught ReferenceError: config is not defined
I am tasked to set up our Angular app to run with ng serve to utilize breakpoints in vscode and other features for trouble shooting code. I was able to get it to finally work but I have to run ng ...
0
votes
0
answers
18
views
Npm packages are not being installed while creating an angular project
I installed
node 16.12 ,
npm 8.1 ,
angular cli 14.0.5.
After that started creating angular new project using: "ng new project1".
But it didn't complete well. It loaded much while initiating ...
0
votes
0
answers
14
views
I am getting error 800A03F6- Angular Code
I have installed Node JS and tried running angular with both the LTS and the Latest versions of NodeJS. I have installed angular too in the cmd. But whenever I am trying to run angular codes or trying ...
1
vote
1
answer
68
views
Creating new angular project using angular cli - @angular/cli and @angular/core show different versions in package.json
Angular beginner here. Currently held assumption - when creating a new angular project, versions of packages in package.json should match those in npmjs website.
npm list -g shows the following
/usr/...
0
votes
0
answers
13
views
My angular website is not showing its content instead showing some angular stuff after hosting it in git hub pages
My angular website is not showing its content instead showing some angular stuff after hosting it in git hub pages.
Its showing like below:
coding-master
Coding
This project was generated with Angular ...
0
votes
1
answer
61
views
Why does Angular 13 webpack build fail?
I am currently trying to migrate an application from Angular 12 to 13 .
I am using webpack 4.43.0 in package.json (devDependecies) :
"webpack": "^4.43.0",
"webpack-cli": &...
0
votes
0
answers
17
views
Use NX core without nrwl plugins with Angular and other frameworks
I want to use core nx/nrwl without plugins but still have a monorepo advantages.
I would like to use angular/cli and NOT nrwl/angular, I don't see any of the examples of how to do it.
Is it possible ...
0
votes
2
answers
105
views
override baseHref for ng serve in Angular 14
I have a set "baseHref" to '/bui' in the angular.json file because the static files are deployed there.
If I use ng serve with port 4200 and I navigate to https://localhost:4200 I get the ...