Skip to content
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

babel-runtime dependency error #1

Closed
kristianmandrup opened this issue Oct 30, 2016 · 3 comments
Closed

babel-runtime dependency error #1

kristianmandrup opened this issue Oct 30, 2016 · 3 comments

Comments

@kristianmandrup
Copy link

Trying to use it, I get:

$ babel-node index.js
module.js:474
    throw err;
    ^

Error: Cannot find module 'babel-runtime/core-js/object/keys'
    at Function.Module._resolveFilename (module.js:472:15)
    at Function.Module._load (module.js:420:25)
    at Module.require (module.js:500:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/kristianmandrup/repos/generators/master-inquisitor/node_modules/inquirer-path/lib/PathPrompt.js:3:13)

When I look at the file node_modules/inquirer-path/lib/PathPrompt.js
Indeed, I don't have babel-runtime in my project. I think your compilation surely should output ES5 files that are not reliant on babel runtime.

'use strict';

var _keys = require('babel-runtime/core-js/object/keys');

var _keys2 = _interopRequireDefault(_keys);

var _assign = require('babel-runtime/core-js/object/assign');

var _assign2 = _interopRequireDefault(_assign);

var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');

var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);

var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
@aam229
Copy link
Owner

aam229 commented Jun 18, 2017

Sorry I did not take care of this earlier. It is fixed with the beta version.

@aam229 aam229 closed this as completed Jun 18, 2017
@Fuzzyma
Copy link

Fuzzyma commented Sep 14, 2017

I have the same problem with beta3 so I would like to reopen this issue.
I really would like to use this piece of awesomeness

module.js:487
    throw err;
    ^

Error: Cannot find module 'babel-runtime/core-js/object/keys'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (Z:\heat\arduino\testbed\node_modules\inquirer-path\lib\PathPrompt.js:3:13)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)

@aam229
Copy link
Owner

aam229 commented Sep 14, 2017

I got rid of the babel transform-runtime plugin altogether. Thank you for pointing out the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants