What is the correct way to import the blocks-editor?

Đã có trọn bộ đề thi thử THPT Quốc Gia 2022 các môn: vip.dethihsg247.com

I was following a blocks tutorial that was using @wordpress/editor to import some components and everything was working correctly but I was getting tons of deprecation warnings in the browser all saying I should be using @wordpress/block-editor instead.

So I replaced it and installed the block editor in npm:

then in my plugins.php I added the dependency:

added to my webpack.config.js:

So now any time I save my previously working post in WordPress I get this error in the browser’s console and I am not able to edit:

TypeError: _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__ is undefined parent.js:35

I would think this is the relevant line in parent.js:

Is my externals declaration incorrect?

Xin chào các bạn và quý Thầy Cô. Hãy nhập từ khóa mình muốn vào ô tìm kiếm trên Website để tìm kiếm mọi thứ hoặc trên google các bạn hãy nhập từ khóa + dethihsg247.com để tìm kiếm các bài viết của chúng tôi nhé.
  • Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
  • Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
  • Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.

Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com