Addon styles not being imported
See original GitHub issueHello, I’m attempting to use this addon within another addon and am not sure if my setup is incorrect or if there is an issue with this addon. When I have included a styles.scss
inside of a component folder and included: @import "pod-styles";
inside of addon/styles/addon.scss
.
When I serve the addon I get a message:
ember-component-css: You have not yet created a component style file.
And looking inside of vendor.css
see the dummy file from lib/include-all.js
.
I tried to track down the issue myself, by pulling down this addon and running a linked version with some logging, but the only thing I can figure out is that the Funnel returned in _getPodStyleFunnel
doesn’t seem to be working.
I created an example addon repo with my setup: https://github.com/DHedgecock/component-css-addon
By the way thanks for the awesome addon. We’re using it in the production app that I work on and it’s hands down the best.
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (6 by maintainers)
Top GitHub Comments
@DHedgecock I looked into right now actually, and turns out you just need to install
ember-cli-sass
in your dependencies, and create anapp.scss
in yourtests/dummy/app/styles/
and you should be good to go. You’s still get oneember-component-css: You have not yet created a component style file.
if you runember serve
cause you aren’t using it in your app, but it’s getting included in there anyways.Hope this resolves your issue!! If it does, please close the issue, otherwise let me know what else isn’t working right. Thanks! 😄
I have now got the component-css-addon to build and work properly with tests when I do import ‘dummy/initializers/component-styles’ in each component-test.js file. My own addon is working too. Thank you for helping out.