-
-
Notifications
You must be signed in to change notification settings - Fork 231
webpack 5 issue: process.nextTick is undefined #450
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
Comments
In the meantime yes. Though I think readable-stream can probably use enqueueMicrotask (that is available in browsers as well) |
I have this very same issue! I am surprised to find that - when doing git blame - process.nextTick is already used for at least a year! How come nobody ever had an issue with it thus far? Note, i too am using webpack 5. If anyone has an intermediate solution, i'm all ears! |
This library does not support Webpack 5. It runs in browsers with browserify and Webpack 4. |
@markg85 fwiw you can jut tell Webpack 5 to polyfill process APIs - it's just setting up an alias. I can't find official docs but here: https://medium.com/@sanchit3b/how-to-polyfill-node-core-modules-in-webpack-5-905c1f5504a0 |
I see. After posting my comment i found #435 which explains why it doesn't work. While i do get the webpack point of view of not supporting node object injections like process, it is a sore pain in the *** that the package world isn't ready yet for their (idealistic?) views. To be honest, it's probably time for me to look for an alternative to webpack. I don't want or need to be looking for solutions for hours. I just want nodejs app compile to website compatible and be done with it. Webpack used to be an ok-ish fit for that. Not anymore it seems.
I found that one too. I find these examples to be severely biased towards people who know all the ins and outs of webpack already and know enough by reading one line. I'm apparently not one of those. Do you have an actual example of what i should be putting in the webpack config file and/or package.json? |
No since I haven't updated to webpack 5 myself. After the webpack 3->4 upgrade fiasco I've resigned to wait 6 months before attempting to upgrade. I'd just use webpack 4 and wait if I were you. |
So parcel works like a charm without any issue at all! Guess i'm a parcel user now :) |
The solutions mentioned above are still not working for me. For more information. |
also, just for anyone that ends up here, here's a list from webpack of the modules that are used in v4, was more clear to me at least than the medium article: |
also, some success with process polyfill for pdfkit: |
Will be fixed in v4.0.0 |
Getting an error with webpack 5 since process.nextTick isn't being polyfilled automatically.
Would the answer be to polyfill this manually? If yes - might be useful to add to documentation.
The text was updated successfully, but these errors were encountered: