-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Partials not found error #235
Comments
I'm running into this as well. My Here's the error I'm receiving in my Console:
app/styles/main.scss:
app/styles/pages/shop.scss:
Gulp task:
My folder structure:
I've tried: reinstalling node, reinstalling npm modules, uninstalling all npm modules and reinstalling. Any idea what might be going on? |
Another note: Even if I remove the contents of
Sometimes it errors out, sometimes it doesn't. |
I get this intermittently as well, it's also an error on the last file I save but I can't reproduce consistently. |
Please try with the 2.x branch. If we don't hear back, we'll assume it's been resolved and close this issue.
|
@Snugug I gave that a shot and I'm running into the same issue. |
@kyleva @vdecree I've seen reports that people have found success by physically deleting their current Please also try with a reduced use case, literally just |
@Snugug I've gone as far as deleting my gulpfile.js
If I run the Example: if I run Version info
|
Please try it with the newest version of gulp sass
|
@Snugug Upgraded to the newest version of Still receiving the error intermittently (saving a couple times in a row without making any changes to file - works fine twice, then errors the third time):
|
You deleted the previous gulp sass version and updated your gulp task accordingly, yes? Please also supply a reduced use case of Sass where we can see this happening
|
@Snugug Before my previous post I did the following:
When running
|
Thanks, I'll take a look |
@Snugug If you'd like a zip archive with the files I can send it to you. |
@kyleva try getting rid of the
|
@akrawchyk No dice on that one! Here's my gulpfile:
Error:
package.json:
Folder structure:
|
@kyleva your |
@Snugug Thanks for the suggestion. I had previously attempted using the latest version and ran into the same issue. Tried it again today and still receiving the error. package.json:
Error:
|
Just an FYI, this issue also occurs when scaffolding out a site using Yeoman's gulp-webapp. |
@peterankelein +1 on that as well. When using Yeoman's |
I'm also running into this on several projects. Usually if I save a couple times it'll eventually get past it. Let me know if I can provide anything helpful. Gulpfile:
Main Sass file:
Intermittent error (latest, using gulp-sass@2.0.0-alpha.1):
|
Hello there I'm assuming this #250 is the same issue as this one right? Can you all try to update to gulp-sass 2.0 (now on npm) and try again ? |
Now it's not working at all |
In order for us to help debug this problem, please follow the following steps:
Please also include your node version, npm version, operating system, and double check your gulp-sass and node-sass versions by checking the version number in |
I have problem in installing gulp-sass, I even created a new folder when I try to install " npm install gulp-sass --save-dev " I get this error : npm ERR! Cannot read property 'trim' of undefined |
@Soularix that is a bug in npm i believe? npm/npm#7829 |
Exactly the same issue on Windows 7 here. 'file to import not found or unreadable' error in about 40% of the cases using gulp watch. Followed the steps above and didn't help. Moved the project to my SSD and for now the problems seem to have gone. |
@smiddus Cool! |
@agopshi Probably |
so we need to switch to sublime in order to get around this problem? <- emacs user. |
@negativefix Using Sublime 3 with |
Thanks @agopshi. Additionally, I have just realized that I am not getting this error using Github Atom. |
I am in fact getting this error using Atom. This issue does not seem resolved to me. |
Hi all, i dont know if the problem was resolved but i use this solution and works to me... In the pipe sass i added a includePath to the route of my scss file |
Using Sublime 3 on mac and atomic_save: true works for me |
Adding to the discussion, another point that needs attention is that, if you save the file (which triggers the compiler), without any changes, the compiler crashes. Context here is Windows 10, Sublime Text 2, NodeJS v4.2.2, NPM v3.3.10, and the devDeps, on package.json, as below: {
"devDependencies": {
"connect-modrewrite": "^0.8.2",
"gulp": "^3.9.0",
"gulp-autoprefixer": "^3.1.0",
"gulp-connect": "^2.2.0",
"gulp-minify-css": "^1.2.1",
"gulp-minify-html": "^1.0.4",
"gulp-sass": "^2.1.0",
"gulp-sourcemaps": "^1.6.0"
},
"engines": {
"node": ">=0.10.0"
}
} The error If I save the file, with changes, everything is fine. Obs.: |
"atomic_save": true |
For me the error is when editing |
I'm using Sublime Text 2 and the |
"atomic_save": true does not work 100% for me either. Seems hit or miss here still. I'm editing files on a Windows server from ST3 on Mac over SMB. The gulpfile and process is running on the windows server. |
This solution worked for me. Note: make sure you're editing the settings in the right area. For Windows.... (Toolbar)-->Preferences-->Settings (User) |
Huge help thanks! |
把"atomic_save"设置为true,就可以了!!!!。。谢谢各位大神~~~~ |
So? I'm an Github Atom user and this "fix" doesn't work :S |
I'm using Github Atom. It doesn't have 'atomic_save' option. Anybody knows how to fix this problem? Is there any workaround? Please share. |
@rahulnever2far |
@smiddus Yes, my project is on HDD. By the way, the issue suddenly stopped occurring today. Weird! I will report back if it occurs again. |
I've only started seeing this error since changing my SASS folder structure. Previously I had all of my imports coming from the same directory. Now that my imports are coming from sub-directories, I get the error. Don't really want to use "atomic_save" : true" if there's a non hacky soloution. |
I had to switch to grunt due to this specific issue :( |
This may or may not be of any use, but in my case I had commented out the below 2 lines in my .scss file: Since removing the comments, everything works as it should. Also, this is very strange, but even when I removed I'll post my task, in case it's of any use:
Edit: Okay, my apologies, I do still get this error, but not anywhere near as often as previously. It's probably more like 1 out of every 15 saves, rather than 1 out of 2. |
I can confirm this
|
I am also using Sublime Text 2,the "atomic_save: true " doesn't work. |
This is a gulp problem, not a gulp-sass problem. We have no power over whether |
Hi there,
I've only found one submission for this problem but the fix doesn't work for me. Every so often at random intervals I get the error:
file to import not found or unreadable: partials/header
I've tried setting the include paths but to no avail. My task looks like:
I also tried commenting parts out in order to find a problem line but nothing seems to help. Any ideas?
The text was updated successfully, but these errors were encountered: