webpacker icon indicating copy to clipboard operation
webpacker copied to clipboard

rake webpacker:install command fails with 6.0.0.rc.6

Open fitchMitch opened this issue 4 months ago • 0 comments

A bug is a crash or incorrect behavior. If you have a debugging or troubleshooting question, please open a discussion on the Rails forum, category webpacker

Setup environment:

  • Ruby version: ruby 3.3.2
  • Rails version: 7.1.3
  • Webpacker version: 6.0.0.rc.6

Expected behavior:

running bundle exec rails webpacker:install with no error

Actual behavior:

running command raises the following error:

bin/rails aborted! NoMethodError: undefined method `exists?' for class Dir (NoMethodError)

if Dir.exists?(Webpacker.config.source_path) ^^^^^^^^ Did you mean? exist? /home/etienne/dev/rails_projects/monstagedeseconde/bin/rails:9:in <top (required)>' /home/etienne/dev/rails_projects/monstagedeseconde/bin/spring:15:in <top (required)>' /home/etienne/dev/rails_projects/monstagedeseconde/bin/rails:3:in load' /home/etienne/dev/rails_projects/monstagedeseconde/bin/rails:3:in

' Tasks: TOP => app:template

Small, reproducible repo:

Setup environment:

  • Ruby version: ruby 3.3.2
  • Rails version: 7.1.3

fitchMitch avatar Oct 11 '24 10:10 fitchMitch