Rails new --dev is failing

According to guides, I should be able to create a new app against my local branch with bundle exec rails new ~/my-test-app --dev.

I tried it inside a rails-dev-box, but it’s failing because of webpack. I tried with --no-webpack too without success.

Before I start digging if there is a bug in main, I would like to know if someone else has the same problem or I am doing something wrong.

rails aborted!
Webpacker configuration file not found /home/vagrant/my-test-app/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory @ rb_sysopen - /home/vagrant/my-test-app/config/webpacker.yml


Caused by:
Errno::ENOENT: No such file or directory @ rb_sysopen - /home/vagrant/my-test-app/config/webpacker.yml


Caused by:
ArgumentError: unknown keyword: :aliases

Tasks: TOP => app:template
(See full trace by running task with --trace)
rails aborted!
Webpacker configuration file not found /home/vagrant/my-test-app/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory @ rb_sysopen - /home/vagrant/my-test-app/config/webpacker.yml


Caused by:
Errno::ENOENT: No such file or directory @ rb_sysopen - /home/vagrant/my-test-app/config/webpacker.yml


Caused by:
ArgumentError: unknown keyword: :aliases

Tasks: TOP => app:template
(See full trace by running task with --trace)

I find out that SKIP_REQUIRE_WEBPACKER=true fixes my problem.

For example:

SKIP_REQUIRE_WEBPACKER=true bundle exec rails new ~/my-test-app --dev

I guess that it is a temporal thing.

Would help to know your rails version

It’s inside a “rails-dev-box”, it is using the “main” branch, current commit “a44fbb5dcacd3281116f7d9881a25e8f08f729a4”, but as I said, the generator is working with SKIP_REQUIRE_WEBPACKER=true.