question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: migrationCreator is not a function

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
chrisdoblercommented, Nov 8, 2018

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.

0reactions
Khaledgarbayacommented, Jul 17, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

"migrationCreator is not a function" when using contentful ...
I am unable to run the migration scripts in order. The error that is provided is not very helpful and seems to be...
Read more >
TypeError: migrationCreator is not a function - Stack Overflow
The script you have written is a "normal" node.js script. node contentful-import.js. Will do the job just fine for that. contentful space ...
Read more >
Error Laravel Migration table already exists but i want to add ...
The reason this happens is that you ran a rollback previously and it had some error in the code or did not drop...
Read more >
'X' is not a function TypeError in React [Solved] | bobbyhadz
The React.js Uncaught TypeError: X is not a function occurs when we try to call a value that is not a function as...
Read more >
DB2 - SQL Error Code List - IBM Mainframe
Code Reason Description System Action ‑113 INVALID CHARACTER FOUND IN NAME: name. The statement cannot... ‑172 function‑name IS NOT A VALID FUNCTION NAME NA NA...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found