babel / babel-brunch

Brunch plugin for Babel
ISC License
68 stars 38 forks source link

TypeError: Cannot use 'in' operator to search for 'version' in false #3

Closed john-kurkowski closed 10 years ago

john-kurkowski commented 10 years ago

After installing this plugin, without changing any of my Brunch config, brunch build thinks for a second, then exits with

TypeError: Cannot use 'in' operator to search for 'version' in false
at Object.getArg (./node_modules/brunch/node_modules/source-map/lib/source-map/util.js:23:18)
  at new SourceMapConsumer (./node_modules/brunch/node_modules/source-map/lib/source-map/source-map-consumer.js:53:24)
  at updateMap (./node_modules/brunch/lib/fs_utils/source_file.js:32:268)
  at updateCache (./node_modules/brunch/lib/fs_utils/source_file.js:64:18)
  at ./node_modules/brunch/lib/fs_utils/source_file.js:84:11
  at ./node_modules/brunch/lib/fs_utils/pipeline.js:85:20
  at getDependencies (./node_modules/brunch/lib/fs_utils/pipeline.js:42:14)
  at ./node_modules/brunch/lib/fs_utils/pipeline.js:80:16
  at JavaScriptCompiler.compile (./node_modules/javascript-brunch/lib/index.js:23:10)
  at ./node_modules/brunch/lib/fs_utils/pipeline.js:96:31
  at fn (./node_modules/brunch/node_modules/async-waterfall/index.js:19:24)
  at Object._onImmediate (./node_modules/brunch/node_modules/async-waterfall/index.js:58:22)
  at processImmediate [as _immediateCallback] (timers.js:336:15)

One of my first paths, node_modules/jquery/dist/jquery.js, yields false for the sourceMap property. Not sure what that means or where false comes from. My Brunch config makes no mention of source maps; I try to let defaults do the right thing.

es128 commented 10 years ago

395b23395698c4f841ad12a7af41f42c115d801f should fix it. Try npm install es128/6to5-brunch and let me know please.

es128 commented 10 years ago

should be resolved with release 1.7.4 - at least until the next time 6to5 makes breaking api changes

john-kurkowski commented 10 years ago

Build completes now. Thanks!