After I build my project, I’m seeing this error in the WP admin, and none of my styles inside editor.css are being applied.
block-editor.min.js?…0b748cf406a8d42e:26 editor/0-css was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.
add_action('enqueue_block_assets', function () {
if(is_admin()) {
bundle('editor')->enqueue();
}
}, 100);
And in the editor.css for testing I had body .editor-styles-wrapper (copied over from another Sage project.) It was wrong! It should be body.editor-styles-wrapper .