Skip to content

Warning: Conflict: Multiple assets emit different content to the same filename 0.worker.js #19569

@muuvmuuv

Description

@muuvmuuv

🐞 Bug report

Command (mark with an x)

  • serve

Is this a regression?

No

Description

I have two independent modules which have both their own workers. Now when I serve my app and edit any file inside one module tree it prints Multiple assets emit different content to the same filename 0.worker.js.

🔬 Minimal Reproduction

https://github.com/muuvmuuv/angular-worker-issue

  1. server the app
  2. go into src/app/two/two.page.ts:14
  3. edit the file and save it

🔥 Exception or Error


Warning: Conflict: Multiple assets emit different content to the same filename 0.worker.js
Warning: Conflict: Multiple assets emit different content to the same filename 0.worker.js.map

🌍 Your Environment


Angular CLI: 11.0.3
Node: 14.15.1
OS: darwin x64

Angular: 11.0.3
... cli, common, compiler, compiler-cli, core, platform-browser
... platform-browser-dynamic, router, service-worker
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1100.3
@angular-devkit/build-angular   0.1100.3
@angular-devkit/core            11.0.3
@angular-devkit/schematics      11.0.3
@schematics/angular             11.0.3
@schematics/update              0.1100.3
rxjs                            6.6.3
typescript                      4.0.5

Anything else relevant?

I am using observable-webworker lib to be able to use Observables with workers but also tested without the lib and the error still persist.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions