fgrehm / letter_opener_web

A web interface for browsing Ruby on Rails sent emails
MIT License
718 stars 112 forks source link

Reading application.scss under the node_modules directory? #88

Closed ruedap closed 6 years ago

ruedap commented 6 years ago

I have a problem with Sass::SyntaxError in LetterOpenerWeb::Letters#index occurs.

Environment

Steps to reproduce the problem

# With letter_opener_web working properly

$ mkdir -p node_modules/foobar
$ touch node_modules/foobar/application.scss
$ echo ".foo { top: \$bar; }" > node_modules/foobar/application.scss
$ open http://localhost:3000/letter_opener

# An error occurs

Error

image

Is this a bug? Why are you reading application.scss under the node_modules directory?

Thanks 😃

ruedap commented 6 years ago

I was wrong. This behavior seems to be the default from Rails 5.1. 😇 https://github.com/rails/rails/pull/26836/files#diff-d5d2957cdc17a0b428be60e72e8dacd8R10