Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
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". ...
Zeynep Ozen's user avatar
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 ...
Bhuvanesh's user avatar
-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 ...
Surendra Kumar's user avatar
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 ...
Mysterious Coder's user avatar
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 ...
Abhishek Bindra's user avatar
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 ...
Alex von Wirth's user avatar
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 ...
sachin verma's user avatar
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": [{ ...
Shabbir Dhangot's user avatar
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 --...
user2900572's user avatar
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: ...
Luis Rains's user avatar
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 ...
belzebu's user avatar
  • 820
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 ...
Matanya dayfani's user avatar
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: ...
Mr. Developer's user avatar
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 ...
Patricio Vargas's user avatar
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 ...
EugenSunic's user avatar
  • 13.5k

15 30 50 per page
1
2 3 4 5 6