All Questions
Tagged with angular7 angular-cli
90
questions
0
votes
0
answers
45
views
Angular upgrade 7 to 8
When I use this command ng update @angular/cli@8 @angular/core@8
I'm encountering an issue while trying to update Angular CLI and its core packages:
Package not installed: "@angular/core". ...
0
votes
1
answer
44
views
How to set runtime configuration in angular after taking production build?
I've used appconfig.json for dynamically obtaining endpoint url's throughout the application using "app_initializer".but the problem here is,if i use json file it is getting exposed in ...
-1
votes
2
answers
83
views
Running project with the Angular CLI throws an error
When I build and run the angular 7 application through the angular CLI command it generates this error message:
The serve command require to be run in an angular project, but a
project definition ...
1
vote
1
answer
615
views
Angular 8: Loading module from "url" was blocked because of a disallowed MIME type (“text/html”)
I have created the application in Angular 8 and Node 12.
After creating angular 8 build I am facing this problem while opening a new tab or page reload I have searched all around the internet did not ...
0
votes
0
answers
1k
views
ng build works but ng build --prod throws an error
I am a student learning Angular by building project. When i do ng build it works but ng build --prod gives an error.
I have tried removing node_modules and then reinstalling it again.
The error ...
3
votes
0
answers
447
views
Angular 7 - Module not found: Error: Can't resolve 'fs'
TL;DR
When using Angular 7 and an external library depending on antlr4ts, I can't compile. I get the following error:
ERROR in ./node_modules/antlr4ts/misc/InterpreterDataReader.js
Module not ...
0
votes
1
answer
85
views
Angular7 - Error working with multiple questions in handling radio control in forms
I'm trying to handle multiple mcq based questions in reactive angular form. But the issue is that when i click option from one question, the selection from other question dissappears. I know there is ...
2
votes
0
answers
375
views
Remove code from build based on environment variable
I am creating website for multiple country and maintaing same code base. I am able to remove pagea using fileReplacements feature by replacing route file.
"test": {
"fileReplacements": [{
...
7
votes
1
answer
10k
views
Browser loading cached version of index.html - angular 7
I have an angular 7 application running on python server, using angular-cli we are building project files. While building i am setting up cache bursting option using the below command.
ng build --...
1
vote
0
answers
300
views
Error performing ng build --prod = true --optimization = true in angular 7
When I try to execute the following ng build command --prod = true --optimization = true or execute ng build command --prod = true, I have the following error:
ERROR in : Error: Illegal State: ...
4
votes
0
answers
808
views
Angular 7: build app with external config being excluded from the bundle
This is probably a familiar topic App.settings - the Angular way? but tbh, after a day of a researching I couldn't find a satisfying solution, hence I ask the question here.
Goal is to build an ...
2
votes
1
answer
485
views
ng build --prod non-exported function
I'm a beginner user in Angular.
The compiler says I have a method error in the file that is responsible for animation between components.
I could not quite figure out what the problem was.
In looking ...
8
votes
2
answers
15k
views
Cannot determine versions of "@angular/cli" local installation is broken
So, I've broken my local installation after install moment plugin.
This Momento plugin
After this installation, when I put command ng serve to running project, the return by the console is:
...
1
vote
1
answer
1k
views
Creating a new Angular 8 project doesn't give me options
I'm creating a new Angular 8 project and I was trying to set the style sheets to SCSS and create angular routing from the beginning of the project. I know I can do it manually, but it was pretty nice ...
0
votes
0
answers
1k
views
ng build --prod doesn't generate dist folder (angular 7)
Running ng build generates dist folder
Running ng build --prod succeeds but does not generate
Have reloaded VS code, refreshed, checked angular cli, to no avail.
Fragment of angular.json which could ...