typescript-ruby / typescript-rails

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

Rails 5 support? #41

Closed andyrue closed 7 years ago

andyrue commented 8 years ago

I'm using Rails 5.0.0.rc.1 and get this error upon starting the server on a new project with gem typescript-rails installed.

/ typescript-rails/lib/typescript/rails/railtie.rb:8:in block in <class:Railtie>': undefined methodregister_engine' for Sprockets:Module (NoMethodError)

Is there a trick to getting this to work with Rails 5? Thanks!

andyrue commented 8 years ago

I think the issue specifically has to do with Sprockets 4.0 compatibility. Not sure how to fix it though.

mihai-dinculescu commented 7 years ago

I have submitted a PR request with the fix.

Meanwhile you can use

gem 'typescript-rails', github: 'mihai-dinculescu/typescript-rails'

https://github.com/mihai-dinculescu/typescript-rails

phortx commented 7 years ago

This is merged meanwhile and can be closed as far as I can see :)