Open samdj opened 8 years ago
This is an issue with thlorenz/convert-source-map
.
What's happening is that both devtool
and babel-core
depend on convert-source-map
. This causes the source map converter to parse itself. This shouldn't be a problem, except there is a comment in convert-source-map/index.js
that has a fake sourceMappingURL
.
Just remove this line to fix it. :+1:
There are 3 ways to go about this:
babel-core/node_modules/convert-source-map
and devtool/node_modules/convert-source-map
. NOTE: This will be overwritten if you reinstall either package.convert-source-map
, remove the comment, fork babel-core
and devtool
and make them depend on your fork of convert-source-map
. 😢 babel-core
and devtool
).Interesting @aleclarson, that is quite a hacky fix.
@aleclarson looks like I'm getting this error when just trying to run gulp
without babel
devtool `which gulp`
@dtothefp Looks like you have convert-source-map
installed in your devtool-test
package? And devtool/node_modules/convert-source-map/index.js
is parsing the example.
Seems to only be a problem when devtool is global
Aw damn it :( just found this tool and this caught me right off the bat. I need sourcemaps to be there, can't really do without them. Hopefully the source map folks get time to make a fix.
I'm trying to run something like so:
It only works with
--no-source-maps
. I'm getting this error:Using this babelrc:
Using node v5.12
Any ideas?