Error in Setting up the OpenFlow On-Premises (Build from Source)

Hi Team,

We’re trying to install Openflow by following the instructions given at build from source | openflow. but we’re facing exceptions while trying this step

Now you can run this by going to run ( Ctrl+Shit+D) and selecting OpenFlow in the dropdown box and press play button.

Exception Details:
C:\Program Files\nodejs\node.exe .\dist\index.js
Debugger attached.
22:19:47.365 Starting @openiap/openflow
Waiting for the debugger to disconnect…
C:\Users\sesvdi\OpenFlow\openflow\dist\OAuthProvider.js:44
function logout() {
^

Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\sesvdi\OpenFlow\openflow\node_modules\oidc-provider\lib\index.js from C:\Users\sesvdi\OpenFlow\openflow\dist\OAuthProvider.js not supported.
Instead change the require of index.js in C:\Users\sesvdi\OpenFlow\openflow\dist\OAuthProvider.js to a dynamic import() which is available in all CommonJS modules.
at Module.cachePathsRequire [as require] (C:\Users\sesvdi\OpenFlow\openflow\node_modules\cache-require-paths\index.js:44:21)
at Object. (C:\Users\sesvdi\OpenFlow\openflow\dist\OAuthProvider.js:7:25)
at Module.cachePathsRequire [as require] (C:\Users\sesvdi\OpenFlow\openflow\node_modules\cache-require-paths\index.js:44:21)
at Object. (C:\Users\sesvdi\OpenFlow\openflow\dist\DatabaseConnection.js:8:25)
at Module.cachePathsRequire [as require] (C:\Users\sesvdi\OpenFlow\openflow\node_modules\cache-require-paths\index.js:44:21)
at Object. (C:\Users\sesvdi\OpenFlow\openflow\dist\LoginProvider.js:18:30)
at Module.cachePathsRequire [as require] (C:\Users\sesvdi\OpenFlow\openflow\node_modules\cache-require-paths\index.js:44:21)
at Object. (C:\Users\sesvdi\OpenFlow\openflow\dist\DBHelper.js:9:25)
at Module.cachePathsRequire [as require] (C:\Users\sesvdi\OpenFlow\openflow\node_modules\cache-require-paths\index.js:44:21)
at Object. (C:\Users\sesvdi\OpenFlow\openflow\dist\Logger.js:8:20)
at Module.cachePathsRequire [as require] (C:\Users\sesvdi\OpenFlow\openflow\node_modules\cache-require-paths\index.js:44:21)
at Object. (C:\Users\sesvdi\OpenFlow\openflow\dist\index.js:10:18) {
code: ‘ERR_REQUIRE_ESM’
}

Node.js v18.16.0

Expecting your assistant in fixing this, if needed we can have a screen sharing.
Thanks in advance

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.