Source map generation error when deploying to HerokuSee original GitHub issue
I have been trying to add sass-brunch support to my app, which I deploy to Heroku. When I do so, I get a bunch of errors like the following:
error: Source map generation failed for 'tmp/build_bbbbbbbb/app/views/styles/foo.scss': ENOENT: no such file or directory, open '/tmp/build_bbbbbbbb/tmp/build_bbbbbbbb/app/views/styles/foo.scss'
I have tried both
brunch/sass-brunch#master, both of which work locally for me (but I am on Windows), and both of which fail on Heroku. I am using node
14.17.0 and npm
7.14.0. Unsure if it matters, but my Heroku setup uses
Any ideas would be appreciated. Thanks!
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
I was able to make a workaround fix for myself for this by change this line: https://github.com/brunch/sass-brunch/blob/master/index.js#L124
src.replace(process.platform === 'win32' ? 'file:///' : 'file://', '')
This is now fixed on master