-
Notifications
You must be signed in to change notification settings - Fork 4.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
When installing @wordpress/components in a 3rd party repo, some types are broken #50157
Comments
Re.
This seems to be due to how DT types used to expose a We simply don't do that in our first-party types. I guess that could be easily fixed by doing something like import type { Popover } from '@wordpress/components`;
type PopoverProps = React.ComponentProps< typeof Popover >; |
Yeah, I think this is true. I also think all |
GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement.
Yeah, I think we'll need to refine how we approach this in Gutenberg. (Here's a good description of the issue: https://stackoverflow.com/a/46011417). If our published types include "import x from y", then y needs to be resolvable from node_modules. This works fine in our internal repo, since everything is available in node_modules, but does not work anywhere else. This also makes it tricky to add a CI rule, because it wouldn't get caught when running tsc in the internal repo unless we remove the node_modules that aren't directly associated with the package at hand -- which would probably cause other issues with actual dev tools. Ideally, the linter rules about defining dependencies in package.json would catch this, but since the main dependency is defined already, that lint rule can't help us. |
I think skipLibCheck is a red herring here; it wouldn't catch this particular issue |
Another side of this is that certain dependencies, like It would probably be worth adding a script to try to report issues here; otherwise we might end up continuously having to fix these. (Though at the same time, we might not be adding |
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]>
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
* Update wordpress monorepo * Remove `@types/wordpress__components` GB switched to including types in the package instead of using a `@types/` package. This also necessitated some code changes, since they're not publishing the component props (see WordPress/gutenberg#50157). Also of note is that their types for `ClipboardButton` are broken, in that they didn't declare that it also accepts all `Button`'s props. Since that component is deprecated anyway, we just replace use of it with the designated replacement. --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4861850947
Adding a minimal CodeSandbox repro here for reference. |
Description
I recently experimented with updating
@wordpress/components
to the latest version (23.9.0), and found a few errors when trying to use it with Typescript:I think this could be related to us disabling the lib check in tsc for components:
gutenberg/packages/components/tsconfig.json
Line 17 in 85e2d4e
Step-by-step reproduction instructions
Install the components package in a 3rd party package repo.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: