You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
@fitchMitch a workaround that worked for me was to open the /webpacker-6.0.0.rc.6/lib/install/template.rb and replace the 2 instances of .exists? with .exist?
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:
Expected behavior:
running
bundle exec rails webpacker:install
with no errorActual 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:
The text was updated successfully, but these errors were encountered: