# Simple javascript library import not working

**URL:** <https://discourse.gohugo.io/t/simple-javascript-library-import-not-working/21281>\
**Category:** support\
**Created:** [October 15, 2019, 6:33pm UTC](https://discourse.gohugo.io/t/simple-javascript-library-import-not-working/21281 "2019-10-15T18:33:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zzo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zzo/32/9742_2.png) [@zzo](https://discourse.gohugo.io/u/zzo)\
**Post date:** [October 15, 2019, 6:33pm UTC](https://discourse.gohugo.io/t/simple-javascript-library-import-not-working/21281/1 "2019-10-15T18:33:05Z")

</div>

this is dead simple html code

```auto
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/simplebar/4.2.3/simplebar.min.js"></script>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/simplebar/4.2.3/simplebar.min.css">
  <script>
    $(document).ready(function() {
      new SimpleBar();
    })
  </script>
</head>
<body>
  dd
</body>
</html>

```

and I wonder why I get this error message. thx

 ![errormessage](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/5/5902eb401ab0b5ec316689477b0729329acc46fd.png)

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [October 15, 2019, 10:08pm UTC](https://discourse.gohugo.io/t/simple-javascript-library-import-not-working/21281/2 "2019-10-15T22:08:39Z")

</div>

Please follow the advice at [Requesting Help](https://discourse.gohugo.io/t/requesting-help/9132). Without seeing the code, it doesn’t appear to be a Hugo issue.

---

<div class="post-metadata">

**Author:** ![zzo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zzo/32/9742_2.png) [@zzo](https://discourse.gohugo.io/u/zzo)\
**Post date:** [October 15, 2019, 10:19pm UTC](https://discourse.gohugo.io/t/simple-javascript-library-import-not-working/21281/3 "2019-10-15T22:19:29Z")

</div>

I think I’m following the rules and somebody in the future who may struggle with the same issue can get help so I posted this. And I spend more than 5 hours and can’t find the solution so where can I ask for it

---

<div class="post-metadata">

**Author:** ![zzo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zzo/32/9742_2.png) [@zzo](https://discourse.gohugo.io/u/zzo)\
**Post date:** [October 16, 2019, 1:43am UTC](https://discourse.gohugo.io/t/simple-javascript-library-import-not-working/21281/4 "2019-10-16T01:43:48Z")

</div>

I found out that this error message is totally not related to Hugo. maybe SimpleBar object really doen’t exist in the library;
