# Sage 10 import css and js?

**URL:** https://discourse.roots.io/t/sage-10-import-css-and-js/19360
**Category:** sage
**Created:** 2020-10-22T19:18:09Z
**Posts:** 5

## Post 1 by @inspecto0 — 2020-10-22T19:18:09Z

Hello, i hope i am at the right place. I am new and trying new things.

Can some on explain to me where you import new .scss or .js files in sage10?

In sage9 you got a main file like main.scss or main.js to import those files, but in sage10 i can’t find this?

I hope some on could explain me :slight_smile:

---

## Post 2 by @alwaysblank — 2020-10-22T19:20:50Z

> <https://github.com/roots/sage/blob/master/resources/assets/styles/app.scss>

> <https://github.com/roots/sage/blob/master/resources/assets/scripts/app.js>

---

## Post 3 by @inspecto0 — 2020-10-23T07:52:22Z

thank you, but when i create a new file and let it import in app.js i get the following error when i try to build.

**ERROR in ./resources/assets/scripts/app.js**

**Module not found:**

I filled in: import ‘music.js’

Could you explain what i am doing wrong?

---

## Post 4 by @codepuncher — 2020-10-23T10:20:31Z

Change it to `import './music.js';`.  
The `./` indicates that it is a local file in the current directory rather than a node module.

---

## Post 5 by @system — 2020-12-03T19:18:12Z

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