-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update Isolated Block Editor #94
Conversation
After talking with John, he opened Automattic/isolated-block-editor#91 to adjust the package versions. I think we should best wait for that to get merged and just update to the next version or update to that branch instead of mine. Let's keep this PR on hold in the mean time. |
👋 I've been trying to add more integration tests to iso-editor to prevent issues like this, could you help me understand what happened here? For example if you have a simple repro case that triggers this issue, we can add that to the tests. (cc @johngodley) |
Hi @mirka! Thank you for taking a look :) In our case, the issue here was specific to the version If you'd like to try to reproduce this in our environment and investigate, you can do so by checking out
I hope this helps :) |
Ok, so the issue was that iso-editor's In that case I guess the only thing we can do on iso-editor's side is to be quicker with wp dep updates. Time to whip out the ol' Renovate 🤖 |
No, that part was correct. In When I bumped Now that I think of it, that might be a good point to test - that there's only a single version of each package when you install it.
Yeah, for the time being we do rely on the Gutenberg version that comes with |
Ah, I kind of see what happened here. Based on yarn.locks, iso-editor is internally consistent ( Lines 5356 to 5364 in 645ff81
This seems like a pretty gnarly problem that is bound to happen again, but I don't know what the best course of action is. Like, is this something that can or should be prevented on the Gutenberg side? Or should iso-editor be hard pinning its wp dep versions? 🤷 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Both apps work.
Should we fix the dependencies' versions? Maybe not right now, but ...
This patch updates the isolated block editor to the latest version as well as updating all
@wordpress/*
package numbers to match.Unfortunately, I ran into some trouble with
Automattic/isolated-block-editor@2.7.0
, which seems to have a dependency on@wordpress/block-editor@7.0.4
which is out of sync with its own dependencies that rely on version8.0.5
of the same package.Because we're bundling
@wordpress/*
packages together with our apps, this was causing our editor to break whenever trying to load any core blocks.As a quick fix, I made a new branch on the isolated block editor repo and bumped the version manually, then pointed our dependency at that commit. This allows us to move forward without waiting for the next release.
This patch will enable #64 to finally be merged.
Testing
Apply the patch, run
yarn install
and verify our apps build correctly, especially@crowdsignal/dashboard
and@crowdsignal/project-renderer
.