-
Notifications
You must be signed in to change notification settings - Fork 4.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
[Bug] - Packages npm request @wordpress/upload-media #68490
Comments
@swissspidy, do you have any thoughts? I think those packages should work just fine, but they won't have any enhancements from the private/experimental packages. |
you can view on https://github.com/WordPress/gutenberg/blob/trunk/packages/block-editor/src/components/provider/index.js. It's use upload-media but it's not installed this package |
The idea was to not publish the package yet because it‘s still experimental. That‘s why it‘s not listed in the dependencies. So installing should actually work just fine. Please share more concrete steps to reproduce and I can take a look after my holiday vacation. |
It seems that this is the reason some of our tests started failing. Here's a sample test failure, as well as the originating dependabot PR. Any suggestions? Thank you. |
Hmm it seems like we'd either have to do some dynamic import in |
If the IMO the best way to solve this is to:
An alternative is to do some dynamic import like: try {
return await import( '@wordpress/upload-media' );
} catch {
/* ... */
} but that looks much more complicated than just publishing an alpha version on NPM. |
Fixed via #68522. |
Description
Packages npm request @wordpress/upload-medianpm packages request @wordpress/upload-media. The block editor packages require media upload, but when running npm install @wordpress/upload-media or yarn add @wordpress/upload-media, it reports that the package does not exist.
Step-by-step reproduction instructions
yarn add @wordpress/upload-media
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: