sass / sassc-rails

Integrate SassC-Ruby with Rails!
MIT License
707 stars 103 forks source link

Enabling inline source maps gives a TypeError from execJS #94

Open vindia opened 7 years ago

vindia commented 7 years ago

Per the README I've changed my configuration in Development mode.

# config/environments/development.rb
config.sass.inline_source_maps = true
config.sass.line_comments = false

After that, I've also clear my assets cache, killed all spring tasks, and restart Rails. However, I each time I open my project in my browser, I get the same 500 error:

TypeError: Object function ArrayBuffer() { [native code] } has no method 'isView'

The only way to fix this right now is to disable inline source maps by setting config.sass.inline_source_maps = false in my development.rb. Other people in my team don't have this issue, so it should not be related to the Rails or Ruby version we're using (5.1.1 and 2.3.3 respectively btw).

Do you have any pointer what I could check out to make inline source maps work again?

jondkinney commented 6 years ago

I was getting a similar error with these options turned on:

SyntaxError: Unexpected token , in JSON at position 3

https://github.com/sass/sassc-rails/issues/96 may be related.