Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not import @materialze with newest ember-cli version. #8

Closed
Chun-Yang opened this issue Feb 26, 2015 · 8 comments
Closed

Can not import @materialze with newest ember-cli version. #8

Chun-Yang opened this issue Feb 26, 2015 · 8 comments

Comments

@Chun-Yang
Copy link

Error message:

/Users/newuser/Project/beauty_now_pro/ember/tmp/tree_merger-tmp_dest_dir-CDIj1KxA.tmp/app/styles/app.scss:1: file to import not found or unreadable: 'materialize'
Current dir: /Users/newuser/Project/beauty_now_pro/ember/tmp/tree_merger-tmp_dest_dir-CDIj1KxA.tmp/app/styles/
 [string exception]

My ember-cli version:
version: 0.2.0-beta.1
node: 0.10.26
npm: 2.1.8

Temporary solution:

Add these lines:

  var ENV = {

    sassOptions: {
      includePaths: ['bower_components/materialize/sass']
    },
  }
@sgasser
Copy link
Collaborator

sgasser commented Mar 2, 2015

FIxed

@sgasser sgasser closed this as completed Mar 2, 2015
@samselikoff
Copy link
Contributor

I'm seeing this again, I'm on 0.2.7

@mike-north
Copy link
Owner

Next release should take care of it, now that the sassOptions in Brocfile has been walked back. see: #139

You could point to #master until @sgasser pushes a new release to npm

@julienfitz
Copy link

Having the same/similar problem:

File: /Users/username/projectName/tmp/tree_merger-tmp_dest_dir-ZOpqIPtK.tmp/app/styles/app.scss (1)
file to import not found or unreadable: materialize
Current dir: /Users/username/projectName/tmp/tree_merger-tmp_dest_dir-ZOpqIPtK.tmp/app/styles/

Using:
Ember 1.13.5
Ember CLI 1.13.1
Node 0.12.2
NPM 2.7.5

Tried a number of different fixes including the one mentioned by @Chun-Yang but no dice. In another issue I read there may be a conflict between broccoli-sass vs. ember-cli-sass so I tried removing one, then the other, still nothing. Tried putting sassOptions in the brocfile. Any other ideas?

@mike-north
Copy link
Owner

I suspect that you're missing the required

   sassOptions: {
      includePaths: ['bower_components/materialize/sass']
    },

Can you ls the tmp directory you see in your error message (i.e., ls /Users/username/projectName/tmp/tree_merger-tmp_dest_dir-ZOpqIPtK.tmp/app/styles/)?

@julienfitz
Copy link

Yeah, I tried including sassOptions in my environment.js within ENV = {} as well and I get:

/Users/userName/projectName/tmp/broccoli_merge_trees-output_path-Ueb3BW8t.tmp/app/styles/app.[scss|sass] does not exist

So then, when I ls the broccoli_merge_trees-output_path-Ueb3BW8t.tmp directory, I get no such file or directory. (I ls'd each successive directory from the root just to be sure I wasn't using the wrong path)

@julienfitz
Copy link

So, just as in #132 it turns out I just had to remove broccoli-sass from my dependencies, AND include sassOptions in my environment.js. I thought I had already tried that combination, but I guess not!

Thanks!

@mike-north
Copy link
Owner

I'll make a note that this addon is only to be used w/ ember-cli-sass -- not broccoli-sass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants