# Sage 10 importing .pkgd javascript file

**URL:** https://discourse.roots.io/t/sage-10-importing-pkgd-javascript-file/20504
**Category:** sage
**Tags:** webpack, sage10, sage9
**Created:** 2021-04-02T11:33:01Z
**Posts:** 3

## Post 1 by @hallowichig0 — 2021-04-02T11:33:01Z

Hi All,

Does anyone know how to import .pkgd.js or .pkgd.min.js file. I always get error when i tried to import this type of file.

This dependency was not found:  
**ERROR in ./resources/assets/scripts/app.js**

**Module not found: Error: Can’t resolve ‘infinite-scroll/dist/infinite-scroll’ in '/Users/jaysongarcia/Documents/Websites/wp-twig-boiler/web/app/themes/sage-10.0.0-dev/resources/assets/scripts’**

**@ ./resources/assets/scripts/app.js 13:0-66**

**@ multi ./resources/assets/scripts/app.js ./resources/assets/styles/app.scss**

---

## Post 2 by @strarsis — 2021-04-02T14:07:11Z

How does your require/import look for that library?

---

## Post 3 by @hallowichig0 — 2021-04-02T14:38:38Z

Thank you for your reply but Its okay now. I figured it out that when you put a .pkgd file, you also need to import jQueryBridget in app.js

Its look like this:  
import jQueryBridget from ‘jquery-bridget’;  
import InfiniteScroll from ‘infinite-scroll’;

jQueryBridget(‘infiniteScroll’, InfiniteScroll);

---

## Post 4 by @system — 2021-05-14T11:33:03Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
