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

TypeError: migrationCreator is not a function #103

Closed
rachel-church opened this issue May 24, 2018 · 6 comments
Closed

TypeError: migrationCreator is not a function #103

rachel-church opened this issue May 24, 2018 · 6 comments

Comments

@rachel-church
Copy link

Running the below command caused a TypeError
contentful-migration --space-id 3mu3dzx76r6a migrations/change-country-field.js

contentful-migration --version => 0.9.0

TypeError: migrationCreator is not a function
    at /usr/local/lib/node_modules/contentful-migration/built/lib/migration-steps/index.js:139:16
    at tryCatcher (/usr/local/lib/node_modules/contentful-migration/node_modules/bluebird/js/release/util.js:16:23)
    at Function.Promise.attempt.Promise.try (/usr/local/lib/node_modules/contentful-migration/node_modules/bluebird/js/release/method.js:39:29)
    at Object.migration (/usr/local/lib/node_modules/contentful-migration/built/lib/migration-steps/index.js:138:23)
    at migration (/usr/local/lib/node_modules/contentful-migration/built/lib/migration-parser.js:43:49)
    at run (/usr/local/lib/node_modules/contentful-migration/built/bin/cli.js:53:29)
    at Object.<anonymous> (/usr/local/lib/node_modules/contentful-migration/bin/contentful-migration:6:1)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Function.Module.runMain (module.js:684:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3
@Khaledgarbaya
Copy link
Contributor

Hi @rachel-church,
I will investigate this and get back to you asap.

Khaled

@Khaledgarbaya
Copy link
Contributor

Khaledgarbaya commented Jun 26, 2018

Hi @rachel-church,
I was NOT able to reproduce this issue, what was your node version?
Best,
Khaled

@rachel-church
Copy link
Author

I have node v8.9.4

@Khaledgarbaya
Copy link
Contributor

Hey @rachel-church sorry I missed the not in my previous comment, does removing and installing the package again help ?

@Khaledgarbaya
Copy link
Contributor

I closing this issue due to inactivity, feel free to create a new one if needed

@chrisdobler
Copy link

I'm getting the same error. It's not clear what causes it. @Khaledgarbaya do you have any idea what might be set wrong? The cli works fine.

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

No branches or pull requests

3 participants