Questions tagged configuration

Explore the latest questions and answers asked by our top developers.

Angular 12: RangeError: Maximum call stack size exceeded

I am getting this error when building: Generating browser application bundles (phase: building)…/home/jde/edApp2Angular12/node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamChunksOfSourceMap.js:21 const lines = source.match(SPLIT_LINES_REGEX); ^ RangeError: Maximum call stack size exceeded at String.match (<anonymous>) at streamChunksOfSourceMapFull (/home/jde/edApp2Angular12/node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamChunksOfSourceMap.js:21:23) at module.exports (/home/jde/edApp2Angular12/node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamChunksOfSourceMap.js:389:6) at SourceMapSource.streamChunks (/home/jde/edApp2Angular12/node_modules/webpack/node_modules/webpack-sources/lib/SourceMapSource.js:211:11) at module.exports (/home/jde/edApp2Angular12/node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamChunks.js:13:17) at ReplaceSource.streamChunks (/home/jde/edApp2Angular12/node_modules/webpack/node_modules/webpack-sources/lib/ReplaceSource.js:176:44) at module.exports (/home/jde/edApp2Angular12/node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamChunks.js:13:17) at streamAndGetSourceAndMap (/home/jde/edApp2Angular12/node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamAndGetSourceAndMap.js:27:53) at CachedSource.streamChunks (/home/jde/edApp2Angular12/node_modules/webpack/node_modules/webpack-sources/lib/CachedSource.js:208:35) at module.exports (/home/jde/edApp2Angular12/node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamChunks.js:13:17) I’ve […]

By Jette
Published
Categorized as angular, build, caching, configuration Tagged , , ,

Angular 12 ignoring configuration files or reading from some cache?

Angular keeps warning me about IE 11: Warning: Support was requested for IE 11 in the project’s browserslist configuration. IE 11 support is deprecated since Angular v12. I came across this answer: Angular 12 warns about requested IE 11 support. Why? I changed my .browserslistrc file as recommended, and it now looks like this: last […]

By Jette
Published
Categorized as angular, build, caching, configuration Tagged , , ,

Visual Studio Code ubuntu Terminal configuration to use npm

I’m using Visual Studio Code on ubuntu to develop Angular, so i need to use npm in the terminal. but it doesnt work that what is see in the terminal: sh-5.1$ id uid=1000(zero) gid=1000(zero) groups=1000(zero),65534(nfsnobody) sh-5.1$ npm start sh: npm: command not found sh-5.1$ How can i fix this ? Source: Angular Questions

How to use Runtime Configurations in Angular Modules

I am trying to implement "Build once Run Everywhere" in my angular app. As many of the blogs and suggestions I read, I have created a config.json file under assets folder. Created a service which reads this *.json and can be injected to any component at Runtime. Fine. I have an issue where I need […]

Is there a way to set a global and and a configuration-dependent list of scripts which are merged during build?

I’m trying to achieve the following, here’s an excerpt from the angular.json-file: "build": { "builder": "@angular-devkit/build-angular:browser", "options": { "outputPath": "dist/in-surecollphirweb", "index": "src/main/webapp/app-basic-an/index.html", "main": "src/main.ts", "polyfills": "src/polyfills.ts", "tsConfig": "tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": [ "src/src/main/webapp/favicon.ico", "src/src/main/webapp/assets" ], "styles": [], "scripts": [ "global-script.js" ] }, "configurations": { "tenantA": { "styles": [ "tenantA.scss" ], "scripts": [ "./node_modules/script/script-tenantA.js" ] }, […]

By Vortilion
Published
Categorized as angular, configuration Tagged ,

Test environment variables depending on configuration mode

I have 5 environment files: environment.common.ts environment.a.ts environment.b.ts environment.c.ts environment.ts I have modified my angular.json to this: … "projects": { "app": { … "architect": { "build": { … "configurations": { "a": { "fileReplacements": [ { "replace": "src/environments/environment.ts", "with": "src/environments/environment.a.ts" } ], … }, // same for b and c } } } } } // […]

How to dynamically change Angular application host for development?

Let’s break this down. I’m using angular.json for managing project configuration. I want to be able to leave the host for serving (aka development) equal to 127.0.0.1 (localhost). I have host mapping specified under C:WindowsSystem32driversetc folder in hosts file. It looks something like 127.0.0.1 custom-host.com. The goal is to start the application for development with […]

By Dm Mh
Published
Categorized as angular, configuration, host, localhost Tagged , , ,

Dynamic configuration of MSAL 2 in Angular

For my Angular (v12) application, I use MSAL for Authentication and I’m facing an issue on configuration. In configuration, I have tenantId and app Id to initialize MSAL. I cannot use the standard Angular configuration switching with environment.ts since it cannot be changed in a post build step. Instead, I try to load a json […]

Display modules of angular application based on the environment

My application has 3 modules dashboard, User management, admin . Is it possible to restrict the module based on the environment where it is getting deployed ? In dev environment I want all the 3 modules and in UAT environment I want just dashboard and user management module . Any link or reference would be […]

Is there a way to proxy configure multiple api hosted on different domains in angular 11

proxy.conf.uat.json { "/rest/*": { "target": "https://uatapi.insurenearby.in", "secure": true, "logLevel": "debug", "changeOrigin": true }, "/pnb/*": { "target": "https://uataws.paynearby.in:8080", "secure": true, "logLevel": "debug", "changeOrigin": true }, "/nbib/*": { "target": "https://uatservice.insurenearby.in", "secure": true, "logLevel": "debug", "changeOrigin": true } } shared.service.ts validateVsidMacid(params: ValidateVSIDMACID): Observable<ValidateVSIDMACIDResponse> { var inputUrl = ‘/pnb/v1/AuthService/ValidateRetailerSession’; return this.httpclientService.post(inputUrl, params); } agentLookup(mobno:string):Observable<any>{ var inputUrl = ‘/pnb/v1/Agent/LookUp?phone_Number=’+mobno; return […]

1 2 3

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq