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

Error when running migrations. #14

Closed
SnidelyWhiplash opened this issue Jan 7, 2017 · 4 comments
Closed

Error when running migrations. #14

SnidelyWhiplash opened this issue Jan 7, 2017 · 4 comments
Labels

Comments

@SnidelyWhiplash
Copy link

When I run $ migrate I get the following error:

module.js:338
    throw err;
          ^
Error: Cannot find module 'babel-runtime/core-js/object/assign'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/migrate-mongoose/dist/cli.js:4:15)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)

Any help?

@ertanden
Copy link

Had the same error. Update Node version. I used 6.9.4 LTS without a problem.

@balmasi
Copy link
Owner

balmasi commented Feb 27, 2017

I'll see if I can integrate babel-env to polyfill these for required environments

@balmasi balmasi added the bug label Feb 27, 2017
@SnidelyWhiplash
Copy link
Author

SnidelyWhiplash commented Jan 22, 2018

@balmasi Any progress here? I created a fork that just changes the dep, require call, and .babelrc...

I had issues with requiring the fork directly into my project though, due to the prepublish scripts and such. I ran that manually and finally got everything working as intended (though I did have to add babel-runtime as a dep too).

tl;dr I hacked it into submission, but on your end it should be a pretty simple drop-in.

Cheers.

@balmasi
Copy link
Owner

balmasi commented Jul 7, 2019

Hey all, I've removed support for babel in 4.0.0 so I'm afraid that makes pursuing this a dead end.

Thanks for raising it with me regardless!

I'd love to hear your opinions on what you think you still need babel for your migrations or not

@balmasi balmasi closed this as completed Jul 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants