# Invalid dictionary call

**URL:** <https://discourse.gohugo.io/t/invalid-dictionary-call/23036>\
**Category:** Uncategorized\
**Created:** [January 25, 2020, 6:31pm UTC](https://discourse.gohugo.io/t/invalid-dictionary-call/23036 "2020-01-25T18:31:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sisihagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/sisihagen/32/7953_2.png) [@sisihagen](https://discourse.gohugo.io/u/sisihagen)\
**Post date:** [January 25, 2020, 6:31pm UTC](https://discourse.gohugo.io/t/invalid-dictionary-call/23036/1 "2020-01-25T18:31:28Z")

</div>

Hello,

I try to use Hugo Pipelines because a step away to install other packages. So I write what stand in docs but it ends with:

```
 Error: Error building site: failed to render pages: render of "page" failed: execute of 
 template failed: template: _default/single.html:1:3: executing "_default/single.html" at 
 <partial "layout/head" .>: error calling partial: 
 "/home/siefke/Dokumente/projects/privatesites/sisi- 
 systems.ovh/layouts/partials/layout/head.html:12:18": execute of template failed: template: 
 partials/layout/head.html:12:18: executing "partials/layout/head.html" at <dict "targetPath" 
 "css/layout.css" "outputStyle" "compressed" "enableSourceMap">: error calling dict: invalid 
 dictionary call

```

In the head.html:

```
{{ $options := (dict "targetPath" "css/layout.css" "outputStyle" "compressed" 
"enableSourceMap") }}
{{ $style := resources.Get "scss/layout.scss" | resources.ToCSS $options }}

<link rel="stylesheet" href="{{ $style.Permalink }}">

```

In the static folder find the folder static with content:

```
ls static/
static/

ls static/static/
css/ fonts/ img/ js/ scss/

```

Have someone an Idea what is wrong. I try with static, without static but the error is same.

Regards  
Silvio

---

<div class="post-metadata">

**Author:** ![regis](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/regis/32/4958_2.png) [@regis](https://discourse.gohugo.io/u/regis)\
**Post date:** [January 25, 2020, 7:37pm UTC](https://discourse.gohugo.io/t/invalid-dictionary-call/23036/2 "2020-01-25T19:37:12Z")

</div>

Your `dict` argument list is odd (not even). `dict` takes an even number of arg. odds are keys, even are values so reading your dict:

```auto
targetPath: "css/layout.css"
outputStyle: "compressed" 
enableSourceMap: ???

```

You need a value for that `enableSourceMap` key, I would guess `true`.
