Questions tagged [angular.json]
18 questions
2
votes
1 answer
Ionic serve recompiles several times after changes
I have an Angular-based Ionic project. The issue is that every time I do changes / save, it recompiles 5-10 times before it settles. It is extremely time consuming for development. I believe it something wrong with my configuration in angular.json,…

Maffe
- 71
- 1
- 8
1
vote
1 answer
WARNING in budgets, maximum exceeded
When building my Angular 9.1.3 project with --prod, I receive a warning in budgets.
WARNING in buckets, maximum exceeded error occurs.
It's part of the original anlar.json
"budgets": [
{
"type": "initial",
…

jhonsina
- 13
- 6
1
vote
1 answer
What is the difference between "@angular-devkit/build-angular:browser" and "@angular-devkit/build-angular:dev-server"
I have an app which works with outside ressources like InboxSdk and MsGraph.I was working with ng serve and everything was good.
But when I tried to make my ng build instance ,I discovered that the functionnality of outside ressources only works…

Nurbek Ss
- 49
- 6
0
votes
0 answers
Can't access Webpack debugging after upgrading to Angular 16
I've become the inheritor of a piece of software developed in angular 10. After fighting with it for far too long to update it to angular 16 along with its packages, I've run into an issue.
When I run ng serve -o and inspect the page in Chrome, the…

cszynkowski
- 1
- 2
0
votes
0 answers
Getting error for TSLint in response of ng lint even after migrating from TSLint to ESLint and uninstalling the TSLint as well
I have just migrated from TSLint to ESLint and uninstalled the TSLint. But after running the ng lint command in terminal, the error displayed is - Ensure TSLint is installed.
Following is a snippet of few lines I get after running the command ng…
0
votes
1 answer
Error: Cannot resolve type entity i2.ExtensionsModule to symbol
I am upgrading Angular 5.x to 15.x.
I have resolved most build errors except this -
./src/main.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: Cannot resolve type entity i2.ExtensionsModule to…

user327126
- 965
- 3
- 11
- 22
0
votes
1 answer
upgrading to angular 15 with @angular-builders/custom-webpack getting style-loader error
demo repository link:
https://github.com/OrShalmayev/style-loader-error
I recently upgraded my Angular project from version 12 to 15, and I have been using the following configuration in my angular.json file:
"architect": {
"build": {
…

Or Shalmayev
- 295
- 1
- 12
0
votes
0 answers
Will node_modules included in angular dist folder?
I am creating a dist folder for deployment on dev server using ng build command in angular cli. will it include node_modules also or do i need to copy node_modules separately in dev server?
Also can we change node_modules folder path from schema…

aks
- 7
- 6
0
votes
0 answers
I can't build the App with imported module
I want to use jsforce module in my angular app.
I installed jsforce with npm i jsforce and also
installed @types/jsforce
import it like this import * as jsforce from "jsforce";
but when I'm trying build the Angular app recieves such errors
I don't…

Colder_ Host
- 29
- 5
0
votes
1 answer
Data path "" must NOT have additional properties(standalone) angular 14
when I try to generate a new component this error appears:-
Schematic input does not validate against the Schema:…
0
votes
0 answers
Upgrade from deploy-url to base-href and APP_BASE_HREF issue
Description
We are currently building an Angular client and serving it from an Laravel server.
When deploying our application we have to output our angular build to a sub directory because a ng-build overrides the public map where some of our…

Stefan Willems
- 21
- 2
0
votes
1 answer
Angular14 configurations.production.fileReplacements with module.ts problem
I need to have different module for dev mode and prod mode so I think to use the angular.json option of fileReplacements creating a test.module.ts and test.module.prod.ts.
Then I add the following to the angular.json configuration:
{
"replace":…

Edo2610
- 184
- 1
- 9
0
votes
0 answers
In Angular 14, how do I find the value of"publicHost" (from angular.json) within my service?
I'm using Angular 14. In my angular.json file I have
"serve": {
"builder": "ngx-build-plus:dev-server",
"configurations": {
"production": {
...
"development": {
"browserTarget":…

Dave
- 15,639
- 133
- 442
- 830
0
votes
0 answers
Angular compile scss on html change
I want to know if there is a way to tell the Angular compiler to compile a components style file when the template file is modified?
For example, when I change app.component.html then app.component.scss should also be compiled.
The reason is, I want…

Yusuf Ipek
- 166
- 1
- 11
0
votes
0 answers
Unable to Debug Angular 12 project in Chrome Dev tools after upgrade
This project has been upgraded from Angular 6 to Angular 12, one version at a time. The project compiles and works, but I cannot debug it in Chrome dev tools anymore. I do not see my source code. I tried to 'Add folder to Workspace' in Chrome, but…

SilverFish
- 1,014
- 6
- 28
- 65