-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
When used with gulp-source-maps build fails with error "Path must be a string. Received undefined" #154
Comments
Attaching example project with an issue, I have also discovered that browserify can be a problem here as well, if it's removed from the pipeline it works. |
Just wanted to add in my two cents. It seems this issue is related to babel-core merging source maps. If multiple files have been processed by babel-core, it will merge their source maps. This causes the gulp-babel however, expects the By further digging it seems this issue may indeed also be related to browserify. The source maps all contain the file Not sure yet on how to fix this (except for dropping browserify, if that's part of your options), but still wanted to put this up here in case others search for this issue. |
After updating my node to "v8.11.1" and npm to "5.6.0" gulp build gets broken if used with "gulp-source-maps"
Here is my gulpfile:
js task fails with error "Path must be a string. Received undefined"
I traced the error to "node_modules/gulp-babel/index.js"
line 39
where you gulp-babel has following code as this point:
Problem is that res.map.file here is undefined even though file.sourceMap and res.map has big JSON objects returned.
this breaks the build.
Before update this setup was working properly.
The text was updated successfully, but these errors were encountered: