Open
Description
Using worker-plugin version 4.0.2, and trying to use the worker-plugin/loader
syntax, I get the following error in Webpack:
ERROR in /home/steph/data/enlightware/game-creator/src/blocks/actions/music/music.ts
./src/blocks/actions/music/music.ts
[tsl] ERROR in /home/steph/data/enlightware/game-creator/src/blocks/actions/music/music.ts(18,29)
TS2307: Cannot find module 'worker-plugin/loader!./music.worklet'.
is the line:
import musicWorkletURL from 'worker-plugin/loader!./music.worklet';
The file music.ts
imports the worker music.worklet.ts
.
I am using Webpack 4.42 and Typescript 3.8.3 (both latest).
While my configuration files have nothing exotic IMHO, I am aware that this problem still is likely the result of a complex interaction between Webpack and Typescript, and I will produce a minimal test case as soon as possible. I still post the issue already in case someone else meets the same problem.