-
Notifications
You must be signed in to change notification settings - Fork 20
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
Getting 404s on sourcemaps #67
Comments
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. |
@joshbedo I just released 0.10.0, which should fix this issue. Let me know if not, thanks |
Oh, and you'll probably want to |
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? |
You can manually edit the gobble-grunt package.json to have |
Hey @evs-chris i tried what you suggested and i'm still get the same error. |
That's odd... is there more than one grunt-gobble in your node_modules tree? |
That sourcemap transform error should not be fatal. Does your project still serve correctly? |
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. |
Although now i'm noticing sometimes it stops the build from finishing. So it doesnt always serve the page. |
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 Also, if you |
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 |
I'm getting this message too, the build is fine, just the sourcemap isn't generated. gobble-cli version 0.4.2
|
@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 [email protected], 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 |
Its a really large repo, i can share the structure and bower/package.json file? What would be the most helpful? |
If you can put |
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 |
@aubergene There's an open issue for that - #69 - basically, as far as node-sass is concerned, the source file is Are you not seeing the |
I only see |
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! |
computers ¯\ _ (ツ) _ /¯ Will leave this open for the time being, for @joshbedo |
Sorry i havent had a chance to post the files, i'll try to post something tonight. |
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 :)
The text was updated successfully, but these errors were encountered: