# "you need the extended version to build SCSS/SASS" in extended version?

**URL:** <https://discourse.gohugo.io/t/you-need-the-extended-version-to-build-scss-sass-in-extended-version/32741>\
**Category:** support\
**Created:** [May 6, 2021, 11:53pm UTC](https://discourse.gohugo.io/t/you-need-the-extended-version-to-build-scss-sass-in-extended-version/32741 "2021-05-06T23:53:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndyM](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/andym/32/11725_2.png) [@AndyM](https://discourse.gohugo.io/u/AndyM)\
**Post date:** [May 6, 2021, 11:53pm UTC](https://discourse.gohugo.io/t/you-need-the-extended-version-to-build-scss-sass-in-extended-version/32741/1 "2021-05-06T23:53:32Z")

</div>

So I installed the latest available of Hugo Extended provided by MacPorts, but when trying to use a sass configuration I am told “you need the extended version to build SCSS/SASS”,

Running `hugo version` I get:

```auto
hugo v0.82.1+extended darwin/amd64 BuildDate=unknown

```

In my partial for my template I have:

```auto
{{ $sass := resources.Get "sass/main2.scss" }}
{{ $style := $sass | resources.ToCSS }}
<link href="{{ $style }}" rel="stylesheet" type="text/css" />

```

and then `main2.scss` is located at `assets/sass/main2.scss`.

The app output, during `hugo server`:

```auto
ERROR 2021/05/07 01:44:26 Rebuild failed:

ERROR 2021/05/07 01:44:26 Failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:5:5: executing "_default/single.html" at <partial "head.html" .>: error calling partial: "/Users/andym/Development/projects/www/layouts/partials/head.html:109:34": execute of template failed: template: partials/head.html:109:34: executing "partials/head.html" at <resources.ToCSS>: error calling ToCSS: type <nil> not supported in Resource transformations
adding created directory to watchlist /Users/andym/Development/projects/www/assets/sass

Change detected, rebuilding site.
2021-05-07 01:46:07.550 +0200
Total in 784 ms
ERROR 2021/05/07 01:46:08 Rebuild failed:

ERROR 2021/05/07 01:46:08 TOCSS: failed to transform "sass/main2.scss" (text/x-scss). Check your Hugo installation; you need the extended version to build SCSS/SASS.

```

Any ideas?

---

<div class="post-metadata">

**Author:** ![AndyM](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/andym/32/11725_2.png) [@AndyM](https://discourse.gohugo.io/u/AndyM)\
**Post date:** [May 7, 2021, 12:02am UTC](https://discourse.gohugo.io/t/you-need-the-extended-version-to-build-scss-sass-in-extended-version/32741/2 "2021-05-07T00:02:21Z")

</div>

Investigated some more: even though `hugo version` was displaying the expected version, `hugo server` was not. Running `rehash` solved the issue.

Note, I did have the the non-extended version previously, so it looks like some paths needed a slight refresh.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [May 9, 2021, 12:02am UTC](https://discourse.gohugo.io/t/you-need-the-extended-version-to-build-scss-sass-in-extended-version/32741/3 "2021-05-09T00:02:29Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
