require() of ES Module C:\Users\I806753\AppData\Roaming\npm\node_modules\generator-btp-diagram-icons\node_modules\svgdom\main-module.js from C:\Users\I806753\AppData\Roaming\npm\node_modules\generator-btp-diagram-icons\generators\app\index.js not supported.
Instead change the require of main-module.js in C:\Users\I806753\AppData\Roaming\npm\node_modules\generator-btp-diagram-icons\generators\app\index.js to a dynamic import() which is available in all CommonJS modules.
TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('ERR_REQUIRE_ESM')
Hi,
I'm using installation node-v20.9.0-x64.msi Getting error for 'yo btp-diagram-icons'
C:\Users\I806753\Documents>yo btp-diagram-icons Error btp-diagram-icons
require() of ES Module C:\Users\I806753\AppData\Roaming\npm\node_modules\generator-btp-diagram-icons\node_modules\svgdom\main-module.js from C:\Users\I806753\AppData\Roaming\npm\node_modules\generator-btp-diagram-icons\generators\app\index.js not supported. Instead change the require of main-module.js in C:\Users\I806753\AppData\Roaming\npm\node_modules\generator-btp-diagram-icons\generators\app\index.js to a dynamic import() which is available in all CommonJS modules. TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('ERR_REQUIRE_ESM')