Issue on compiling in a dockercontainer

Heyo,
I found out something about the issue again.
It only fails on productionlevel.

RUN npm install --production --loglevel notice
RUN lerna clean
RUN lerna bootstrap --hoist – --production
RUN npm run build

even locally outside of docker, when using those 4 lines locally to build it.

Also, VS Code is pointing out the error in the emitter.ts file (where the error is coming from) without any changes made to it from our side