'Unable to build the graylog web plugin using "mvn package"

I have downloaded the latest version of plugin and trying to build it using "mvn package" command. I am getting below error. Please help me to resolve the issue.

[INFO] [webpack-cli] Failed to load '/Users/divagu/Desktop/graylog-plugins/plugins-4.0/graylog-plugin-correlation-count/webpack.config.js' config [INFO] [webpack-cli] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined

Environment: Graylog 4.2.7
Node.js v17.7.2
Yarn v1.22.18
OS mac

Please help me in resolving this issue



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source