# SASSC error whenever I run db:migrate and rails server

**URL:** https://meta.discourse.org/t/sassc-error-whenever-i-run-db-migrate-and-rails-server/112069
**Category:** Development
**Created:** [19.Март.2019 15:55:37 UTC](https://meta.discourse.org/t/sassc-error-whenever-i-run-db-migrate-and-rails-server/112069 "2019-03-19T15:55:37Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![SURGE](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/surge/32/134286_2.png) [@SURGE](https://meta.discourse.org/u/SURGE)
#### Post date: [19.Март.2019 15:55:37 UTC](https://meta.discourse.org/t/sassc-error-whenever-i-run-db-migrate-and-rails-server/112069/1 "2019-03-19T15:55:37Z")

</div>

uninitialized constant SassC::Script::String

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [19.Март.2019 16:23:02 UTC](https://meta.discourse.org/t/sassc-error-whenever-i-run-db-migrate-and-rails-server/112069/2 "2019-03-19T16:23:02Z")

</div>

Can you post the full error message? Normally this should show you which file (I would guess here that it’s a plugin) causes the SassC error.

---

<div class="post-metadata">

### Author: ![SURGE](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/surge/32/134286_2.png) [@SURGE](https://meta.discourse.org/u/SURGE)
#### Post date: [19.Март.2019 16:44:51 UTC](https://meta.discourse.org/t/sassc-error-whenever-i-run-db-migrate-and-rails-server/112069/3 "2019-03-19T16:44:51Z")

</div>

```
Error: error in C function image-url: uninitialized constant SassC::Script::String
        on line 277 of app/assets/stylesheets/common/base/onebox.scss, in function `image-url`
        from line 277 of app/assets/stylesheets/common/base/onebox.scss, in mixin `gdocs-logo`
        from line 286 of app/assets/stylesheets/common/base/onebox.scss
        from line 35 of app/assets/stylesheets/common.scss
        from line 1 of desktop.scss
>> background: image-url("favicons/google_branding/logo_#{$type}_48px.png")

```

---

<div class="post-metadata">

### Author: ![SURGE](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/surge/32/134286_2.png) [@SURGE](https://meta.discourse.org/u/SURGE)
#### Post date: [19.Март.2019 16:50:14 UTC](https://meta.discourse.org/t/sassc-error-whenever-i-run-db-migrate-and-rails-server/112069/4 "2019-03-19T16:50:14Z")

</div>

It is a SassC error.

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [19.Март.2019 18:29:00 UTC](https://meta.discourse.org/t/sassc-error-whenever-i-run-db-migrate-and-rails-server/112069/5 "2019-03-19T18:29:00Z")

</div>

What version of `sassc` do you get when you run `bundle install`?

---

<div class="post-metadata">

### Author: ![SURGE](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/surge/32/134286_2.png) [@SURGE](https://meta.discourse.org/u/SURGE)
#### Post date: [19.Март.2019 21:21:16 UTC](https://meta.discourse.org/t/sassc-error-whenever-i-run-db-migrate-and-rails-server/112069/6 "2019-03-19T21:21:16Z")

</div>

I didn’t change anything from the Gemfile, it is SassC 2.0.1.

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [19.Март.2019 22:02:24 UTC](https://meta.discourse.org/t/sassc-error-whenever-i-run-db-migrate-and-rails-server/112069/7 "2019-03-19T22:02:24Z")

</div>

I can’t reproduce with the same SassC version on a Mac. You could follow the solutions [here](https://meta.discourse.org/t/lock-down-sassc-version/101665) for a quick fix.

---

<div class="post-metadata">

### Author: ![SURGE](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/surge/32/134286_2.png) [@SURGE](https://meta.discourse.org/u/SURGE)
#### Post date: [19.Март.2019 22:41:14 UTC](https://meta.discourse.org/t/sassc-error-whenever-i-run-db-migrate-and-rails-server/112069/8 "2019-03-19T22:41:14Z")

</div>

Thanks, this fixed the problem for me but since this is an issue, I will suggest we flag it and allow `~> 1.0` for now  
`gem 'sassc', '~> 1.0', require: false`

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [20.Март.2019 00:43:39 UTC](https://meta.discourse.org/t/sassc-error-whenever-i-run-db-migrate-and-rails-server/112069/9 "2019-03-20T00:43:39Z")

</div>

I definitely want to get sassc upgrades to latest, it is just a bit fiddly. We will make it happen in the next few months.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [20.Март.2019 17:32:09 UTC](https://meta.discourse.org/t/sassc-error-whenever-i-run-db-migrate-and-rails-server/112069/11 "2019-03-20T17:32:09Z")

</div>

> [@sam](#):
>
> next few ~~months~~ hours

We are now running the latest version of sassc, thanks for the reminder @SURGE

[https://github.com/discourse/discourse/commit/56b4ee43d3473601416a071c0afc185a8dc670de](https://github.com/discourse/discourse/commit/56b4ee43d3473601416a071c0afc185a8dc670de)

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [21.Март.2019 18:00:11 UTC](https://meta.discourse.org/t/sassc-error-whenever-i-run-db-migrate-and-rails-server/112069/12 "2019-03-21T18:00:11Z")

</div>

This topic was automatically closed after 24 hours. New replies are no longer allowed.
