Skip to main content

All Questions

0 votes
0 answers
59 views

Issue with module import when use multiple JS versions

I have library my-lib which is consumed by my-application. I have updated my-application and my-lib from Angular15 to Angular16. After that I recognize that There is issue with modules imports for ...
ruddnisrus's user avatar
0 votes
1 answer
770 views

Data path "/fileReplacements/1/replace" must match pattern "\.(([cm]?j|t)sx?|json)$". angular

I updated the angular from 10 to 14 and in the build i was using fileReplacements for favicon.ico replacement like this "fileReplacements": [ { "replace": "src/...
Code Guru's user avatar
  • 15.7k
1 vote
2 answers
1k views

Using environment.ts value in proxy.config.mjs file + Angular

At work we are trying to use proxy.config.mjs (located in src folder) as per Angular Docs to talk to back-end API in Dev mode but we want to set target value in this proxy conf using environment.ts ...
BeingSuman's user avatar
  • 3,333
6 votes
1 answer
2k views

How to change webpack module export require string?

When creating bundle with webpack, for example, it outputs angular as follows. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./...
Muhammet Can TONBUL's user avatar
3 votes
2 answers
1k views

TypeError: Cannot read property 'baseHref' of undefined

I wanted to create webpack configuration for angular 7. I have followed the following tutorial - http://opensourceforgeeks.blogspot.com/2018/12/how-to-customize-build-configuration.html. I am using - ...
Komal Bansal's user avatar