All Questions
Tagged with production-environment angular
103
questions
0
votes
1
answer
60
views
How to fix URLEncoder related issues?
I am having issues with my URL encoder, it is working locally and on stage, but not working on live.
I am using filters to get brand names, but some of those brand names have spaces. When I send a ...
0
votes
1
answer
197
views
Large initial chunk files (Empty Project with PWA and SSR) Angular 17
I am currently working on an Angular 17 project and recently generated a new empty project using Angular CLI with PWA (Progressive Web App) and SSR (Server-Side Rendering) features. However, I noticed ...
0
votes
1
answer
998
views
Try to deploy an Angular 17 web app with proxy config, but it does not work in production
I'm really clueless about the error. Locally in dev mode, it works. But in production, the request return a web page instead of a RSS feed, as if the path was wrong and it return the root (home page ...
2
votes
0
answers
246
views
docker using wrong angular environment file
I want to be able to toggle between Urls so that when I run my angular app locally for development I use the url of my localhost, and when I run it the way I would for production in a docker container ...
0
votes
2
answers
664
views
How to set API path during production build in Angular 15
In Angular 15, There is no environment files so we are using proxy.config file for setting api path for local development but that will not work in production build.
Below is the proxy.config.json ...
0
votes
1
answer
993
views
Hide the environment.js in production environment in angular project
I have recently get requirement that hide or protect environment.js file to download in production environment. These fill are javascript file so if we remove or access other place not proper solution....
0
votes
2
answers
728
views
Angular 12 how to get a value for environment value through a function
I have the need to do something like this:
export const environment = {
production: true,
serverUrl: this.setUrl()
};
so that on startup setUrl would be called and assign the returned value to ...
0
votes
0
answers
110
views
Angular dynamic environment.ts for embedded/packaged application
I'm building a Golang based server/solution that will be installed and run by customers. The frontend/UI is being developed and uses the environment.ts settings are part of Angular. This works fine ...
0
votes
1
answer
251
views
Is production mode is not related to optimization of the files in angular directly?
I have a query related to production mode in angular. So in a new angular project, we have two files inside the environment folder one is the environment.ts with production set to false and the other ...
0
votes
1
answer
1k
views
500 error on the first request deploying in production an angular spring-boot application
I deploy an Angular/springboot application in productionenter code here
When I start the java backend part (runing as jar) it seems that everything works because a sql script was loaded and there is a ...
5
votes
2
answers
4k
views
How to have and read an environment file after an angular application has been built
I'm building an angular application. This angular application will be delivered to multiple clients with different needs and infrastructure. It will need several values (for example backend server, ...
0
votes
0
answers
1k
views
Angular 12 and IE 11 production build error. TypeError: Object doesn't support this action
I know IE11 support is deprecated, but it is what the client and contract requires. I am able to get the site to run locally in Internet Explorer 11, but when I do the production build I get an error....
0
votes
2
answers
2k
views
Transloco does NOT work in my Angular 12 Prod Build, while it works in my DEV build. What could I be missing?
When I run my Angular 12 application locally using npm start the Transloco translations work fine.
However, after an ng build --configuration production when I run my application using http-server ...
0
votes
1
answer
606
views
Angular Build Issue - Error in type is not defined
I am facing strange issue while building angular project. I do not know why its happening.
Following is the error
"ERROR in type is not defined
i 「wdm」: Failed to compile.
i 「wdm」: Compiling...
...
1
vote
0
answers
534
views
ResizeObserver and MutationOberserver not working on production build
In my application, I'm using ResizeObserver and MutationObserver to make changes to my breadcrumb component. I'm observing the outer breadcrumb container for the changes in size (via ResizeContainer), ...