-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Cannot find module '2hV17' (process
) inside webworker
#5714
Comments
Please provide a code sample.
I'm not sure what this is supposed to achieve, but this definitely sounds wrong. |
A lot of this code is private and difficult to share. We specifically use that for the following:
Parcel did not seem to recognize audioWorklets and we made this as a workaround |
When I dove through how the pipelines worked, it seemed like I wanted the javascript to be processed properly but I wanted it to be marked as a URL asset so I could pass the URL as an argument. So |
@mischnic after your comment, I reviewed my code and decided that it may work correctly now on nightly. So I removed that ^ and now it works completely! Thank you for helping!!! One thing I will say is that I still couldn't figure out how to get class properties working on |
For example it doesn't mark it as a worker JS bundle and shared bundles probably also don't work. Here's the issue for audioworklets: #1093 |
🐛 bug report
I am getting an error with parcel nightly whenever a web worker tries to use the
process
global variable. I'm seeing the above error as parcel attempts torequire('process')
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
I should be able to access the
process
global variable without issue😯 Current Behavior
Missing imported module
💁 Possible Solution
I'm not sure how to fix this. I upgraded to parcel nightly because of #5021
🔦 Context
My application fails because my webworkers won't run.
I have just been relying on evergreen javascript and have been trying to avoid custom transpilers and babel configurations.
💻 Code Sample
Here's the first 150 lines of the generated encoderWorker:
🌍 Your Environment
webworker
The text was updated successfully, but these errors were encountered: