Anonymised summary of support ticket #837645 (2023-03-13)
The application throws an error: 'Error [ERR_REQUIRE_ESM]: require() of ES Module not supported' when using N4V FOR WEBI modules (e.g., n4v_maps.js) with Node.js version 18.14.2. The error occurs because the 'node-fetch' module version in use is not compatible with CommonJS require statements.
N4V FOR WEBI extensions running on SAP BusinessObjects Web Intelligence, Node.js version 18.14.2, PM2 process manager.
Ensure compatibility by using 'node-fetch' version 2.6.0 or earlier for Node.js environments relying on CommonJS modules. For Node.js 12.8.1 and above, use versions of 'node-fetch' prior to 3.0.0.