typescript-ruby / typescript-rails

An asset pipeline wrapper for the TypeScript language
MIT License
255 stars 30 forks source link

Rails 6.1 support #56

Open masonlouchart opened 1 year ago

masonlouchart commented 1 year ago

The last version 0.6.2.4 does not look compatible with Rails 6.1.0 released more than 2 years ago.

TypeError:
  module attributes should be defined directly on class, not singleton
# /Users/mason/.rvm/gems/ruby-3.2.1/gems/activesupport-6.1.0/lib/active_support/core_ext/module/attribute_accessors.rb:52:in `mattr_reader'
# /Users/mason/.rvm/gems/ruby-3.2.1/gems/activesupport-6.1.0/lib/active_support/core_ext/module/attribute_accessors.rb:202:in `mattr_accessor'
# /Users/mason/.rvm/gems/ruby-3.2.1/gems/typescript-rails-0.6.2.4/lib/typescript/rails/compiler.rb:7:in `singleton class'
# /Users/mason/.rvm/gems/ruby-3.2.1/gems/typescript-rails-0.6.2.4/lib/typescript/rails/compiler.rb:5:in `<module:Compiler>'
# /Users/mason/.rvm/gems/ruby-3.2.1/gems/typescript-rails-0.6.2.4/lib/typescript/rails/compiler.rb:4:in `<top (required)>'

It would be nice to have it 🙂