You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you have ember-css-modules included in your dependencies for the addon?
If it's in devDependencies (which is where ember install will save it by default), then it will only compile the styles in your dummy app, and not the addon itself – it's the same reason you have to move ember-cli-htmlbars to dependencies when you ship an addon that has templates in it.
That fixed it! Thanks dude appreciate the quick response. I added a PR for adding that instruction to the Usage in Addons portion of the README as this a non-obvious step for new Ember devs.
I get an
Cannot find module
error when trying to import my styles into my component in my addon. Example:Pod folder structure:
I'm not sure what is going on but it looks like
styles.css
is not being registered as a module in the resolver liketemplate.hbs
is.The text was updated successfully, but these errors were encountered: