In my service file, where I store all other services used in the frontend, there is an import section that includes one component even though it is not being used.
import { VacationComponent } from 'app/view/vacation/vacation.component';
When I remove this unused import, I encounter the following error:
main-es2015.0cad4195744251a340b5.js:1 Uncaught ReferenceError: Cannot access 'nX' before initialization
at main-es2015.0cad4195744251a340b5.js:1:1825981
at Module.zUnb (main-es2015.0cad4195744251a340b5.js:1:1826937)
at l (runtime-es2015.66c79b9d36e7169e27b0.js:1:552)
at 0 (main-es2015.0cad4195744251a340b5.js:1:5659)
at l (runtime-es2015.66c79b9d36e7169e27b0.js:1:552)
at t (runtime-es2015.66c79b9d36e7169e27b0.js:1:421)
at Array.r [as push] (runtime-es2015.66c79b9d36e7169e27b0.js:1:293)
at main-es2015.0cad4195744251a340b5.js:1:47
I find it perplexing how removing an unused import can resolve this error, especially since the imported component does not have a variable named "nX" within it. The main file mentioned in the error message contains a definition of nX which looks like the following:
let nX=(()=>{class t{constructor(t,e){this.service=t,this.dialog=e,this.isChecked=!1}
I cannot see any connection to the imported Component file in this context.