When trying to yarn start a new build of my Volto frontend with the most recent volto-code-block release I get the fatal error indicated in the subject line. I'm including a traceback below. When I use the same build except I've done a yarn add @plonegovbr/volto-code-block@2.1.0 (the less recent version I used in my prior build) the frontend works fine.
Below is the full traceback from yarn start with volto-code-block 2.2.1, and below that is a full dependencies block from my project package.json, in case the other dependencies make a difference.
Traceback
/bulk/klm/Servers/Myr/myriadicity-net-2024-03-27/frontend/build/webpack:/frontend/node_modules/@plonegovbr/volto-code-block/src/index.js:102
['gridBlock', 'accordion'].forEach((blockId) => {
^
TypeError: block.allowedBlocks is not iterable
at /bulk/klm/Servers/Myr/myriadicity-net-2024-03-27/frontend/frontend/node_modules/@plonegovbr/volto-code-block/src/index.js:105:1
at Array.forEach (<anonymous>)
at applyConfig (/bulk/klm/Servers/Myr/myriadicity-net-2024-03-27/frontend/build/webpack:/frontend/node_modules/@plonegovbr/volto-code-block/src/index.js:102:1)
at /bulk/klm/Servers/Myr/myriadicity-net-2024-03-27/frontend/build/webpack:/frontend/tmp/tmp-1962298-Znj77xxI8xlq-.js:65:1
at /bulk/klm/Servers/Myr/myriadicity-net-2024-03-27/frontend/build/webpack:/frontend/tmp/tmp-1962298-Znj77xxI8xlq-.js:83:1
at Array.reduce (<anonymous>)
at load (/bulk/klm/Servers/Myr/myriadicity-net-2024-03-27/frontend/build/webpack:/frontend/tmp/tmp-1962298-Znj77xxI8xlq-.js:83:1)
at Module../node_modules/@plone/volto/src/config/index.js (/bulk/klm/Servers/Myr/myriadicity-net-2024-03-27/frontend/build/webpack:/frontend/node_modules/@plone/volto/src/config/index.js:258:1)
at __webpack_require__ (/bulk/klm/Servers/Myr/myriadicity-net-2024-03-27/frontend/build/webpack:/frontend/webpack/bootstrap:24:1)
at fn (/bulk/klm/Servers/Myr/myriadicity-net-2024-03-27/frontend/build/webpack:/frontend/webpack/runtime/hot module replacement:62:1)
sswp> !!! Script exited with code 1
Synopsis
When trying to
yarn start
a new build of my Volto frontend with the most recent volto-code-block release I get the fatal error indicated in the subject line. I'm including a traceback below. When I use the same build except I've done ayarn add @plonegovbr/volto-code-block@2.1.0
(the less recent version I used in my prior build) the frontend works fine.Below is the full traceback from
yarn start
with volto-code-block 2.2.1, and below that is a full dependencies block from my projectpackage.json
, in case the other dependencies make a difference.Traceback
package.json
dependencies block: