Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.

Worker-loader with inline option produce cjs/loader error on build #310

Open
chemiakinav opened this issue Mar 24, 2021 · 0 comments
Open

Comments

@chemiakinav
Copy link

  • Operating System: Mac
  • Node Version: 15.3.0
  • NPM Version: 6.14.8
  • webpack Version: 4.44.2
  • worker-loader Version: 3.0.8

Expected Behavior

Correct webpack build and work when I use worker-loader with the inline option

Actual Behavior

I've got error:

Screenshot 2021-03-24 at 11 00 04

Code

With another options, it works fine, without inline - too (but it produce SCP error, that's why I need inline option)

import Worker from 'worker-loader?inline=no-fallback!./workers/my-worker'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant