# Can't set styleUrls

**URL:** <https://forum.ionicframework.com/t/cant-set-styleurls/84000>\
**Category:** ionic-v3\
**Created:** [March 23, 2017, 4:42pm UTC](https://forum.ionicframework.com/t/cant-set-styleurls/84000 "2017-03-23T16:42:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![madabam](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@madabam](https://forum.ionicframework.com/u/madabam)\
**Post date:** [March 23, 2017, 4:42pm UTC](https://forum.ionicframework.com/t/cant-set-styleurls/84000/1 "2017-03-23T16:42:45Z")

</div>

Hi

I’m having this problem: every time I try to use styleUrls to include the scss files that ng generate create on another project I get the error

`Unhandled Promise rejection: Failed to load my-css.component.scss ; Zone: <root> ;`

in the component is set like this

`styleUrls: ['./my-css.component.scss'],`

I’ve seen many post about the same problem. I really don’t know how to solve it.  
I install ionic 2 and create the project yesterday and couldn’t find out the problem.

This is my proyect structure: [https://www.dropbox.com/s/ande59mngs92bwf/ProyectTreeStructure.txt?dl=0](https://www.dropbox.com/s/ande59mngs92bwf/ProyectTreeStructure.txt?dl=0)

I started with the “super” template and I check all the pages, none of them has this attribute added and the files are in each folder. If I add the attribute to the default pages I get the same error so I don’t think my folder structure is the problem

I saw a lot about don’t use relative path but this is the recomended way in Angular

Thanks!

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [March 23, 2017, 7:37pm UTC](https://forum.ionicframework.com/t/cant-set-styleurls/84000/2 "2017-03-23T19:37:22Z")

</div>

I’m not dealing with Dropbox, but you shouldn’t need to be worrying about this. As long as the selector matches, you can just put your styles into the `component.scss` file in the same folder as the controller and template. Ionic will roll it all up for you.

---

<div class="post-metadata">

**Author:** ![madabam](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@madabam](https://forum.ionicframework.com/u/madabam)\
**Post date:** [March 23, 2017, 8:22pm UTC](https://forum.ionicframework.com/t/cant-set-styleurls/84000/3 "2017-03-23T20:22:00Z")

</div>

Thanks!  
i’ve imported some components generated with “ng generate” of the @angular/cli package and those include the reference.
