ember-codemods / ember-native-class-codemod

A codemod-cli project for converting Ember objects to es6 native classes
67 stars 38 forks source link

ReferenceError: regeneratorRuntime is not defined if using babel.config.json #476

Open ctaylor-nurx opened 3 years ago

ctaylor-nurx commented 3 years ago

I get this error no matter what file I try to run this on. I'm running ember 3.12.

Deleting babel.config.json from my project root fixes the issue. Not sure what the collision is...

Processing 1 files... 
Spawning 1 workers...
Sending 1 files to free worker...
/Users/christophe.taylor/nurx/webapp/node_modules/dir-glob/index.js:65
  var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(input, options) {
                                             ^

ReferenceError: regeneratorRuntime is not defined
    at /Users/christophe.taylor/nurx/webapp/node_modules/dir-glob/index.js:44:1
    at Object.<anonymous> (/Users/christophe.taylor/nurx/webapp/node_modules/dir-glob/index.js:44:1)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Module._compile (/Users/christophe.taylor/nurx/webapp/node_modules/pirates/lib/index.js:99:24)
    at Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Object.newLoader [as .js] (/Users/christophe.taylor/nurx/webapp/node_modules/pirates/lib/index.js:104:7)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)