ExecJS coffee script not showing line numbers for compile errors (Rails asset pipeline)

前端 未结 2 1668
青春惊慌失措
青春惊慌失措 2021-02-05 17:49

In one of my Rails apps, ExecJS is not showing line numbers for coffeescript compilation errors. My compile error message will look like this:

ExecJS::RuntimeErr         


        
2条回答
  •  情话喂你
    2021-02-05 18:10

    This can also be fixed with this patch that embeds the line information in the error message for the ruby-coffee-script gem.

    If you're using source maps, this patch fixes the coffee-rails-source-maps gem.

提交回复
热议问题