ember-modal-dialog icon indicating copy to clipboard operation
ember-modal-dialog copied to clipboard

Loading styles results in build error

Open kevinvangelder opened this issue 9 years ago • 10 comments

When I follow the documentation and do @import "ember-modal-dialog/ember-modal-sturcture"; I get the following build error: file to import not found or unreadable: ember-modal-dialog/ember-modal-structure

Loading the CSS files with relative paths was working until I tried to add the ember-tether gem which obviously isn't ideal.

@import "../../node_modules/ember-modal-dialog/app/styles/ember-modal-dialog/ember-modal-structure";

Any recommendations would be appreciated.

kevinvangelder avatar Jun 29 '15 21:06 kevinvangelder

I just removed ember-tether and tether and my relative CSS paths are working again.

kevinvangelder avatar Jun 29 '15 21:06 kevinvangelder

I have the same issue and I have neither gem installed.

FilmKnurd avatar Sep 29 '15 00:09 FilmKnurd

Might be related to: https://github.com/ember-cli/ember-cli/issues/4658

FilmKnurd avatar Sep 29 '15 00:09 FilmKnurd

I'm seeing this issue as well with the latest release of ember-cli and ember-modal-dialog 0.7.5

Dhaulagiri avatar Nov 12 '15 17:11 Dhaulagiri

Yup me too with ember-cli 1.13.13, and I had to use

@import "node_modules/ember-modal-dialog/app/styles/ember-modal-dialog/ember-modal-structure";

beverlyguillermo avatar Dec 02 '15 16:12 beverlyguillermo

It doesn't help a lot, but still: :+1:

xcambar avatar Jan 12 '16 15:01 xcambar

I fixed this issue for ember-cli 1.13.13 by adding a relative path to the addon's styles into the ember-cli-build.js:

sassOptions: {
  includePaths: [
    'node_modules/ember-modal-dialog/app/styles'
  ]
},

After that I could import the addon's styles by:

@import "ember-modal-dialog/ember-modal-structure";
@import "ember-modal-dialog/ember-modal-appearance";

amoroz avatar Aug 05 '16 16:08 amoroz

This problem still exists in ember-cli 2.8.0. None of suggested workarounds worked for me.

saygun avatar Oct 21 '16 13:10 saygun

Solution from @amoroz fixed this for me on ember-cli: 2.12.0, and "ember-cli-sass": "^6.1.2",

jurecuhalev avatar Apr 18 '17 14:04 jurecuhalev

Getting this error when ember-modal-dialog is in an addon on ember-cli 2.14 :(

k-dauda avatar Aug 31 '17 18:08 k-dauda