After updating to Angular 8, I decided to try generating a web worker for my app using the CLI. Following the steps in the official guide:
https://angular.io/guide/web-worker
I was able to successfully implement it.
However, when attempting to import a module at the top of app.worker.ts
with:
import { MyData } from '../shared/shared.module';
I encountered compile errors: https://i.sstatic.net/npIst.png
Are there any alternative methods for importing modules into web workers?