SDK 24.3 - yeoman scaffolding fails

We tried to create a new Smart View customization project. We follow the instructions from "4-0190 Content Server SmartView Development - 20.2"

When using yeoman for scaffolding we got the following error:

Error [ERR_REQUIRE_ESM]: require() of ES Module C:\SmartView\generator\node_modules\chalk\source\index.js from C:\SmartView\generator\app\index.js not supported.

Instead change the require of C:\SmartView\generator\node_modules\chalk\source\index.js in C:\SmartView\generator\app\index.js to a dynamic import() which is available in all CommonJS modules.

at Object.<anonymous> (C:\SmartView\generator\app\index.js:3:15) {code: 'ERR_REQUIRE_ESM'}}

I tried to downgrade yeoman and node.js. Also tried to change generator\app\index.js to use ECM instead of cjs – but the error still appears.

The only solution found was to use to use SDK version 21.2 instead of the latest - 24.3 .

Can we expect problems using 21.2 generator to create widgets for a higher ECM versions?

What are the compatible versions of Node.js and yeoman for each SDK version?

Tagged:

Answers