BetterErrors / better_errors

Better error page for Rack apps
MIT License
6.88k stars 437 forks source link

Rails won't boot after better error update #523

Open waghanza opened 1 year ago

waghanza commented 1 year ago

Hi @haileys ,

I have a rails app that use better_errors.

After an update of this library, I come with a LoadError: cannot load such file -- sassc.

Digging into the source code, I have spotted that sassc is a development depency https://github.com/BetterErrors/better_errors/blob/55ce4f69be35f652e4b967ad2f720ec4d6c5c72f/better_errors.gemspec#L28

However, it is load in https://github.com/BetterErrors/better_errors/blob/55ce4f69be35f652e4b967ad2f720ec4d6c5c72f/lib/better_errors/error_page_style.rb#L1

Should not it be a runtime dependency ?

Regards,

phylor commented 1 year ago

See https://github.com/BetterErrors/better_errors/issues/516

You can revert to version 2.9.1 until this is fixed and re-released.

gem "better_errors", "2.9.1"