Skip to content

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

Open
@fitchMitch

Description

@fitchMitch

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions