-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgrading from nx 14 -> 15 breaks typescript webworkers #13628
Comments
comlink
comlink
comlink
I dug through the yarn lock and node modules and found that this issue is because of the introduction of https://webpack.js.org/configuration/output/#outputscripttype |
I have similar issue, my webworker is defined in a workspace library. I don't really know howto solve it. |
This is an issue for us too. We had to create a custom webpack config to change it back. This should be configurable or just go off what the default is from |
Any update on this from the nx team @FrozenPandaz ? |
@hevans90 if you just want to change the module.output.scriptType in nx 15.6.3, you can do this
tested in sample repo for nx-react with web worker: https://github.com/SandeepThomas/nx-react-worker |
using either vite or webpack ths issues will not be the same, here is an example using vite build https://github.com/sancelot/nx-webworker-example |
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
In my project (using nx 14, with a standard react app setup), I am using a web worker with TS using the following constructor:
This works perfectly fine.
However when I migrate my repo to
nx 15
, this happens:I have tried this, and it has no effect:
Expected Behavior
Should work normally as before. This is a webpack configuration issue.
Github Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Additional Information
I think this is an underlying webpack config issue.
The text was updated successfully, but these errors were encountered: