-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Module not found: Can't resolve 'p-queue' in '/app/node_modules/@uppy/provider-views/lib/ProviderView' #4637
Comments
Hi, this seems to be an issue with your build setup, very likely because your app doesn't (fully) support ESM. We test against all major bundlers in CI and on production systems where uppy is integrated. Closing as there is not enough information to help but we can continue the discussion. |
Same issue here. My way to fix this is to edit the file It's quite dirty but it's the only solution I found to make it work (webpack 4.46) @Murderlon : note the comment Does anyone here have another idea? |
I faced this locally too yesterday. Will take a look Monday. |
@Murderlon There is already a pull request (marked as draft 3 months ago) for this issue : #4530 |
Discussed with @arturi @aduh95 @mifi, this is not something we can fix. Adding You can patch for your app though, as we do: https://github.com/transloadit/uppy/pull/4640/files#diff-57a642bb288f1faded77fcf3e5cf8a8771e787a7583072f75e55eca777f8865b |
@Murderlon Nevertheless, I don't quite understand how to operate it. I also encountered this issue. Can I directly replace the file for this example? |
You can use something like |
@Murderlon My operation is to directly run 'Yarn add p-queue' and then run it on node_ Found p-queue package in the modules folder. Then delete the 'exports' attribute and add the' main 'attribute. The project is ready to run, I'm not sure if this is possible. |
That works locally, but how will that work in production or for anyone else? |
Thank you very much. It's great to receive a response. Indeed, for situations where multiple developers are involved, my approach is not very applicable. I am not very familiar with the "patch-package" and "yarn patch" operations, and currently manual changes can only solve the problem with my local project. I searched for a simple usage of 'patch-package' in ChatGPT, but there were some errors in my usage, |
But |
I have recorded this issue in README. If there is still a problem with a different computer, please follow the recorded operation. Generally, both running and packaging are in my local project, which can be done locally, but should be possible online. Of course, I will test the situation after the project deployment goes live . |
Initial checklist
Link to runnable example
No response
Steps to reproduce
My
package.json
:My minimal
yarn.lock
:@uppy/onedrive
use the latest version of@uppy/provider-views
@uppy/provider-views
use the p-queuepackage
p-queue
packageError log:
Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered: