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

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum