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
{{ message }}
This repository was archived by the owner on Jun 10, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 10, 2025. It is now read-only.
Recently with our builds we've been getting 404s on all of our sourcemaps. I tried clearing out .gobble, .gobble-build and also node_modules/.bin/gobble but haven't had any luck solving the problem. I saw another issue recently posted about sourcemaps and was wondering if it was related? Looking for any kind of help since we can't debug right now :)
Sorry about this - yes, I'm fairly sure it's related. I just merged #66 which ought to fix it, I'm just tidying up a couple of other bits and pieces then I'll push a new version out, hopefully by the end of the day.
So i just tried to upgrade and i'm having issues with peerDependency requirements. It says i need 0.7.1 for grunt-gobble. Any ideas or suggestions? Thanks!
That's odd... is there more than one grunt-gobble in your node_modules tree? find . -name grunt-gobble or something like that from your project root should turn up any instances of grunt-gobble, and editing their package.json files should skirt the error. I wouldn't expect there to be more than one. What npm command are you running that's throwing the error?
So we only have one instance of grunt-gobble i modified its package.json to use ^0 and that seems to have fixed the npm install error. Now when building i'm getting this error.
Whoops, that EMFILE is probably happening because the update version of sander was using fs instead of graceful-fs. I've just fixed that and released a new version. If you remove gobble from node_modules and reinstall it, it'll get the latest sander and you should no longer see that error.
Also, if you npm install -g gobble-cli@0.4.2 you'll get slightly nicer logging
Is the build failing as a result? ENOENTs should be harmless (they do need better logging admittedly, it looks positively alarming when you see them like that), in theory it'll just skip those files
@aubergene can you share your gobblefile (or at least the bit with sass and the subsequent merge)? That's a weird place for it to be looking for the sourcemap, which makes me wonder if it's getting confused with relative paths or something.
Aaaand now that I look at @joshbedo's screenshot again, it looks like it's exactly the same problem. Are you using sass as well Josh?
Ah, I've found the problem. gobble-sass was generating a sourcemap without understanding where it was writing the actual CSS file to, so the relative path was getting messed up. Not a problem with gobble itself (though it was a recent update to gobble that exposed the problem) - will have a fix released shortly
I've just released gobble-sass@0.4.1, which ensures the relative sourcemap path is relative to the right thing. I also updated gobble itself, which contains a couple of small fixes related to CSS sourcemap URLs.
Those are weird errors - the 'cannot call method 'trace' of undefined', 'unexpected end of input' and ENOENT on jquery/)(.*) are particularly concerning. I don't suppose you're in a position to share the repo, or a stripped-down version that reproduces those errors?
If you can put gobblefile.js, [bower|package].json, and a bare-bones app folder, maybe with a couple of .js, .coffee and .es6.js files in app/assets, that ought to do the trick. Thanks!
I updated gobble and gobble-sass and it ran without errors, thanks! However the sourcemap is generated with the wrong path, so it doesn't work in the browser, the output was "sources":["../.gobble-build/02-merge/1/main.scss"].
@aubergene There's an open issue for that - #69 - basically, as far as node-sass is concerned, the source file is02-merge/1/main.scss, and we need to jump through some hoops to trace it back to the actual file. It should still work though, because the sourcesContent is populated:
Yep, it's enabled. It works fine on both my work machines, so it's probably something odd with my settings on laptop. I think it's fine to close this ticket. Thanks!
Activity
Rich-Harris commentedon May 6, 2015
Sorry about this - yes, I'm fairly sure it's related. I just merged #66 which ought to fix it, I'm just tidying up a couple of other bits and pieces then I'll push a new version out, hopefully by the end of the day.
Rich-Harris commentedon May 6, 2015
@joshbedo I just released 0.10.0, which should fix this issue. Let me know if not, thanks
Rich-Harris commentedon May 6, 2015
Oh, and you'll probably want to
npm install -g gobble-cli@latestwhile you're at it, otherwise some of the logging will look borkedjoshbedo commentedon May 6, 2015
So i just tried to upgrade and i'm having issues with
peerDependencyrequirements. It says i need0.7.1forgrunt-gobble. Any ideas or suggestions? Thanks!Rich-Harris commentedon May 6, 2015
Ack, I struggle with npm's error messages. Have to dash out of the office right now so can't investigate, but does this article help any?
evs-chris commentedon May 6, 2015
You can manually edit the gobble-grunt package.json to have
'gobble": "^0"as a quick workaround.joshbedo commentedon May 6, 2015
Hey @evs-chris i tried what you suggested and i'm still get the same error.
evs-chris commentedon May 6, 2015
That's odd... is there more than one grunt-gobble in your node_modules tree?
find . -name grunt-gobbleor something like that from your project root should turn up any instances of grunt-gobble, and editing their package.json files should skirt the error. I wouldn't expect there to be more than one. What npm command are you running that's throwing the error?joshbedo commentedon May 6, 2015
So we only have one instance of
grunt-gobblei modified itspackage.jsonto use^0and that seems to have fixed the npm install error. Now when building i'm getting this error.evs-chris commentedon May 6, 2015
That sourcemap transform error should not be fatal. Does your project still serve correctly?
joshbedo commentedon May 6, 2015
Yes it does, its just throwing the error on vendors on a few other areas.. not sure why or how to fix.. i've never seen an EMFILE error.
joshbedo commentedon May 6, 2015
Although now i'm noticing sometimes it stops the build from finishing. So it doesnt always serve the page.
Rich-Harris commentedon May 6, 2015
Whoops, that EMFILE is probably happening because the update version of sander was using fs instead of graceful-fs. I've just fixed that and released a new version. If you remove
gobblefromnode_modulesand reinstall it, it'll get the latest sander and you should no longer see that error.Also, if you
npm install -g gobble-cli@0.4.2you'll get slightly nicer loggingjoshbedo commentedon May 7, 2015
So i'm still getting a similar error after upgrading :\
Rich-Harris commentedon May 7, 2015
Is the build failing as a result? ENOENTs should be harmless (they do need better logging admittedly, it looks positively alarming when you see them like that), in theory it'll just skip those files
1 remaining item
Rich-Harris commentedon May 7, 2015
@aubergene can you share your gobblefile (or at least the bit with sass and the subsequent merge)? That's a weird place for it to be looking for the sourcemap, which makes me wonder if it's getting confused with relative paths or something.
Aaaand now that I look at @joshbedo's screenshot again, it looks like it's exactly the same problem. Are you using sass as well Josh?
Rich-Harris commentedon May 7, 2015
Ah, I've found the problem. gobble-sass was generating a sourcemap without understanding where it was writing the actual CSS file to, so the relative path was getting messed up. Not a problem with gobble itself (though it was a recent update to gobble that exposed the problem) - will have a fix released shortly
Rich-Harris commentedon May 7, 2015
I've just released gobble-sass@0.4.1, which ensures the relative sourcemap path is relative to the right thing. I also updated gobble itself, which contains a couple of small fixes related to CSS sourcemap URLs.
joshbedo commentedon May 7, 2015
Hmm it seems like after upgrading im still getting the same error.
joshbedo commentedon May 7, 2015
Not as many errors though, only three this time! 👏 One looks really weird, i think its because of bower components. Also thanks so much for the help!
Rich-Harris commentedon May 7, 2015
Those are weird errors - the 'cannot call method 'trace' of undefined', 'unexpected end of input' and ENOENT on
jquery/)(.*)are particularly concerning. I don't suppose you're in a position to share the repo, or a stripped-down version that reproduces those errors?joshbedo commentedon May 7, 2015
Its a really large repo, i can share the structure and bower/package.json file? What would be the most helpful?
Rich-Harris commentedon May 7, 2015
If you can put
gobblefile.js,[bower|package].json, and a bare-bonesappfolder, maybe with a couple of.js,.coffeeand.es6.jsfiles inapp/assets, that ought to do the trick. Thanks!aubergene commentedon May 8, 2015
I updated gobble and gobble-sass and it ran without errors, thanks! However the sourcemap is generated with the wrong path, so it doesn't work in the browser, the output was
"sources":["../.gobble-build/02-merge/1/main.scss"].Rich-Harris commentedon May 8, 2015
@aubergene There's an open issue for that - #69 - basically, as far as node-sass is concerned, the source file is
02-merge/1/main.scss, and we need to jump through some hoops to trace it back to the actual file. It should still work though, because thesourcesContentis populated:Are you not seeing the
main.scssin devtools?aubergene commentedon May 11, 2015
I only see
main.css, even thoughsourcesContentis in the sourcemap and looks correct. Here's the example repo I've been playing with https://github.com/aubergene/gobble-exampleRich-Harris commentedon May 11, 2015
Do you have CSS sourcemaps enabled in devtools? Your repo works for me... You need to check this box:
Also, I released a new version of gobble-sass which upgrades to the just-released node-sass v3.0.0
aubergene commentedon May 11, 2015
Yep, it's enabled. It works fine on both my work machines, so it's probably something odd with my settings on laptop. I think it's fine to close this ticket. Thanks!
Rich-Harris commentedon May 11, 2015
computers ¯\ _ (ツ) _ /¯
Will leave this open for the time being, for @joshbedo
joshbedo commentedon May 11, 2015
Sorry i havent had a chance to post the files, i'll try to post something tonight.