Skip to content
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

Fix dataviews bundle #3

Merged
merged 4 commits into from
Dec 5, 2024
Merged

Conversation

oandregal
Copy link
Contributor

@oandregal oandregal commented Dec 5, 2024

Fixes #2

What

This PR uses the approach implemented at WordPress/gutenberg#66825 to bundle every dependency required by DataViews.

Why

To prevent conflicts from having different versions of the underlying libraries (e.g.: @wordpress/components).

How

  • Use the next versions of @wordpress/scripts and @wordpress/dataviews. The patch hasn't been released to the stable version yet.
    • npm install --save @wordpress/dataviews@next, which today results in this version 72b3c61
    • npm install --save-dev @wordpress/scripts@next, which today results in this version e9d7fcb
  • Import dataviews from @wordpress/dataviews/wp. See 18fcb6e

How to test

Use WordPress 6.6 or WordPress 6.7, with and without the Gutenberg plugin active. Make sure the plugin still works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uncaught Error: Element type is invalid:
2 participants