Skip to content

Fix dataviews bundle#3

Merged
bph merged 4 commits intowptrainingteam:mainfrom
oandregal:fix/dataviews-bundle
Dec 5, 2024
Merged

Fix dataviews bundle#3
bph merged 4 commits intowptrainingteam:mainfrom
oandregal:fix/dataviews-bundle

Conversation

@oandregal
Copy link
Copy Markdown
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