Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Syntax error in map.rb #269

Closed
Svashta opened this issue Oct 7, 2024 · 5 comments
Closed

Syntax error in map.rb #269

Svashta opened this issue Oct 7, 2024 · 5 comments

Comments

@Svashta
Copy link

Svashta commented Oct 7, 2024

I just updated importmaps to v2.0.2 and I am getting an syntax error in map.rb:45

importmap-rails-2.0.2/lib/importmap/map.rb:45: syntax error, unexpected ')'
...s_and_directories(entry_point:), resolver:).values

@hurricup
Copy link

hurricup commented Oct 7, 2024

Same here. ruby 3.0.6 in our case.

@Faye-Matthews
Copy link

Same issue. I'm using ruby 3.0.2 and rails 7.0.8

@kblake
Copy link

kblake commented Oct 9, 2024

Same. Ruby 3.0.6. Rails 7.0.6

@kblake
Copy link

kblake commented Oct 9, 2024

Looks like a fix is already on its way

#268

@jhawthorn
Copy link
Member

I've just released importmap-rails 2.0.3, which should restore compatibility with Ruby 2.7/3.0 for now. 🤞

However it's most likely that future versions will not support versions of Ruby below 3.1 (and the gemspec will reflect this so not get pulled in). Ruby 3.0 has been EOL for even security updates from Ruby upstream since April of this year so it is probably time to upgrade ❤.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants