Skip to content

Addon Issues #8

@timkendall

Description

@timkendall

I get an Cannot find module error when trying to import my styles into my component in my addon. Example:

import Ember from 'ember';
import layout from './template';
import styles from './styles';

export default Ember.Component.extend({
  layout,
  styles
});

Pod folder structure:

-addon
  -components
    -toggle-switch
      -component.js
      -styles.css
      -template.hbs

I'm not sure what is going on but it looks like styles.css is not being registered as a module in the resolver like template.hbs is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions