Because we are using webpack version 5, worker-loader should be not needed see https://webpack.js.org/guides/web-workers/