geert-janklaps / generator-btp-diagram-icons

Generate SAP Business Technology Platform diagram icons
MIT License
11 stars 2 forks source link

require() of ES Module not supported - use dynamic import() instead #4

Open Bagameri opened 10 months ago

Bagameri commented 10 months ago

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')

superwangnan commented 2 weeks ago

The same error ~