Running rails server with foreman showing error

Hello

When i am running foreman start to run the local server, it is always showing the following message and stop working.

16:45:22 web.1       | started with pid 6193
16:45:22 webpacker.1 | started with pid 6194
16:45:23 webpacker.1 | The command moved into a separate package: @webpack-cli/serve

my ruby version is 3.0.1 and rails version is 6.1.4

upgrade webpack/cli showing more errors. what is the solution?

although when i am removing this line of code from Procfile, no errors are showing any more.

webpacker: ./bin/webpack-dev-server