# Module import: no mounted folder, no errors

**URL:** <https://discourse.gohugo.io/t/module-import-no-mounted-folder-no-errors/45677>\
**Category:** support\
**Tags:** modules\
**Created:** [August 9, 2023, 9:30am UTC](https://discourse.gohugo.io/t/module-import-no-mounted-folder-no-errors/45677 "2023-08-09T09:30:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rkjdid](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rkjdid/32/20070_2.png) [@rkjdid](https://discourse.gohugo.io/u/rkjdid)\
**Post date:** [August 9, 2023, 9:30am UTC](https://discourse.gohugo.io/t/module-import-no-mounted-folder-no-errors/45677/1 "2023-08-09T09:30:43Z")

</div>

I feel like I’m missing something obvious here if someone can help.

I’m trying to use a module and mount assets the way it’s supposed to, in my case [GitHub - gohugoio/hugo-mod-bootstrap-scss: Packages Bootstrap SCSS (v4 and v5) as a Hugo Module](https://github.com/gohugoio/hugo-mod-bootstrap-scss) - which should just download bootstrap sources and mount result on assets/scss

I haven’t been able to do so 😃

```auto
$ hugo version
hugo v0.113.0+extended linux/amd64 BuildDate=2023-07-06T15:15:58Z VendorInfo=debian:0.113.0-2

```

```auto
$ cat hugo.toml 
...

[module]
[[module.imports]]
path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5"
[[module.imports.mounts]]
source="assets"
target="assets/bootstrap"

```

My `assets` folder remains as it was before using the module.

```auto
$ hugo
Start building sites … 
hugo v0.113.0+extended linux/amd64 BuildDate=2023-07-06T15:15:58Z VendorInfo=debian:0.113.0-2

                   | EN  
-------------------+-----
  Pages | 2  
  Paginator pages | 0  
  Non-page files | 0  
  Static files | 47  
  Processed images | 0  
  Aliases | 0  
  Sitemaps | 1  
  Cleaned | 0  

Total in 52 ms

$ ll assets/ assets/scss/
assets/:
total 0
drwxr-xr-x 1 rkj rkj 16 Aug 2 10:58 js
drwxr-xr-x 1 rkj rkj 20 Aug 9 11:12 scss

assets/scss/:
total 4.0K
-rw-r--r-- 1 rkj rkj 3.9K Aug 9 11:12 my_style.scss

```

Thank you for your help 😃

---

<div class="post-metadata">

**Author:** ![rkjdid](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rkjdid/32/20070_2.png) [@rkjdid](https://discourse.gohugo.io/u/rkjdid)\
**Post date:** [August 9, 2023, 5:51pm UTC](https://discourse.gohugo.io/t/module-import-no-mounted-folder-no-errors/45677/2 "2023-08-09T17:51:58Z")

</div>

Quick bump, not making any progress here, I’ve tried a handful of versions of hugo, and also directly with the module which should also mount its own deps into assets. I don’t manage to see the mounted folders, it seems it has no effect. Clearly there’s something wrong the way I’m doing this.

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [August 9, 2023, 6:04pm UTC](https://discourse.gohugo.io/t/module-import-no-mounted-folder-no-errors/45677/3 "2023-08-09T18:04:48Z")

</div>

Starting with a clean/virgin site…

```auto
hugo mod init foo

```

hugo.toml

```toml
[module]
[[module.imports]]
path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5"

```

assets/scss/main.scss (NOT IN STATIC)

```scss
@import "bootstrap/bootstrap

```

baseof.html

```plaintext
<head>
  ....
  {{ with resources.Get "scss/main.scss" | toCSS }}
    <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
  {{ end }}
  ...
</head>

```

---

<div class="post-metadata">

**Author:** ![rkjdid](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rkjdid/32/20070_2.png) [@rkjdid](https://discourse.gohugo.io/u/rkjdid)\
**Post date:** [August 9, 2023, 7:25pm UTC](https://discourse.gohugo.io/t/module-import-no-mounted-folder-no-errors/45677/4 "2023-08-09T19:25:17Z")

</div>

ok well it does work, thank you sorry for trouble \<3

One misunderstanding about the way it works, I was thinking somehow assets would be populated somewhere in the project path ala node\_modules, but actually go modules for hugo dependencies are stored in hugo temp folder (defaults to /tmp/hugo\_cache)  
…  
This is not super convenient for IDE but I’ll make a symlink or something.

The other mistake I made was a typo on my scss import: `import "bootstrap/boo_R_strap"`… so that’s why my file was not compiling 🤦‍♂️ - getting lost without IDE completion, fatfinger

Thank you 😃

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [August 9, 2023, 7:29pm UTC](https://discourse.gohugo.io/t/module-import-no-mounted-folder-no-errors/45677/5 "2023-08-09T19:29:34Z")

</div>

> [@rkjdid](#):
>
> /tmp/hugo\_cache

We recently changed the user cache location. See [https://github.com/gohugoio/hugo/releases/tag/v0.116.0](https://github.com/gohugoio/hugo/releases/tag/v0.116.0).

> [@rkjdid](#):
>
> somewhere in the project path

You can vendor the module(s) with `hugo mod vendor`. Then see \_vendor directory in root of project.

---

<div class="post-metadata">

**Author:** ![rkjdid](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rkjdid/32/20070_2.png) [@rkjdid](https://discourse.gohugo.io/u/rkjdid)\
**Post date:** [August 9, 2023, 7:38pm UTC](https://discourse.gohugo.io/t/module-import-no-mounted-folder-no-errors/45677/6 "2023-08-09T19:38:23Z")

</div>

thanks very good 👍

---

<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:** [August 11, 2023, 7:39pm UTC](https://discourse.gohugo.io/t/module-import-no-mounted-folder-no-errors/45677/7 "2023-08-11T19:39:20Z")

</div>

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