{"action":"closed","issue":{"url":"https://api.github.com/repos/contentful/contentful-migration/issues/124","repository_url":"https://api.github.com/repos/contentful/contentful-migration","labels_url":"https://api.github.com/repos/contentful/contentful-migration/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/contentful/contentful-migration/issues/124/comments","events_url":"https://api.github.com/repos/contentful/contentful-migration/issues/124/events","html_url":"https://github.com/contentful/contentful-migration/issues/124","id":344492837,"node_id":"MDU6SXNzdWUzNDQ0OTI4Mzc=","number":124,"title":"\"migrationCreator is not a function\" when using contentful-migration \"runMigration\"","user":{"login":"alex-greco-harrys","id":41020975,"node_id":"MDQ6VXNlcjQxMDIwOTc1","avatar_url":"https://avatars2.githubusercontent.com/u/41020975?v=4","gravatar_id":"","url":"https://api.github.com/users/alex-greco-harrys","html_url":"https://github.com/alex-greco-harrys","followers_url":"https://api.github.com/users/alex-greco-harrys/followers","following_url":"https://api.github.com/users/alex-greco-harrys/following{/other_user}","gists_url":"https://api.github.com/users/alex-greco-harrys/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-greco-harrys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-greco-harrys/subscriptions","organizations_url":"https://api.github.com/users/alex-greco-harrys/orgs","repos_url":"https://api.github.com/users/alex-greco-harrys/repos","events_url":"https://api.github.com/users/alex-greco-harrys/events{/privacy}","received_events_url":"https://api.github.com/users/alex-greco-harrys/received_events","type":"User","site_admin":false},"labels":[{"id":685888063,"node_id":"MDU6TGFiZWw2ODU4ODgwNjM=","url":"https://api.github.com/repos/contentful/contentful-migration/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":{"login":"Khaledgarbaya","id":1156093,"node_id":"MDQ6VXNlcjExNTYwOTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1156093?v=4","gravatar_id":"","url":"https://api.github.com/users/Khaledgarbaya","html_url":"https://github.com/Khaledgarbaya","followers_url":"https://api.github.com/users/Khaledgarbaya/followers","following_url":"https://api.github.com/users/Khaledgarbaya/following{/other_user}","gists_url":"https://api.github.com/users/Khaledgarbaya/gists{/gist_id}","starred_url":"https://api.github.com/users/Khaledgarbaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Khaledgarbaya/subscriptions","organizations_url":"https://api.github.com/users/Khaledgarbaya/orgs","repos_url":"https://api.github.com/users/Khaledgarbaya/repos","events_url":"https://api.github.com/users/Khaledgarbaya/events{/privacy}","received_events_url":"https://api.github.com/users/Khaledgarbaya/received_events","type":"User","site_admin":false},"assignees":[{"login":"Khaledgarbaya","id":1156093,"node_id":"MDQ6VXNlcjExNTYwOTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1156093?v=4","gravatar_id":"","url":"https://api.github.com/users/Khaledgarbaya","html_url":"https://github.com/Khaledgarbaya","followers_url":"https://api.github.com/users/Khaledgarbaya/followers","following_url":"https://api.github.com/users/Khaledgarbaya/following{/other_user}","gists_url":"https://api.github.com/users/Khaledgarbaya/gists{/gist_id}","starred_url":"https://api.github.com/users/Khaledgarbaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Khaledgarbaya/subscriptions","organizations_url":"https://api.github.com/users/Khaledgarbaya/orgs","repos_url":"https://api.github.com/users/Khaledgarbaya/repos","events_url":"https://api.github.com/users/Khaledgarbaya/events{/privacy}","received_events_url":"https://api.github.com/users/Khaledgarbaya/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2018-07-25T15:25:44Z","updated_at":"2018-12-10T10:53:28Z","closed_at":"2018-12-10T10:53:28Z","author_association":"NONE","body":"## Expected Behavior\r\n\r\n-The contentful-migration library should work as described in readme file.\r\n-The runMigration command should run the multiple migration scripts.\r\n\r\n## Actual Behavior\r\n\r\n```\r\n`mbpus0477hsra18:<DIR> <USUR_NAME>$ contentful space migration --space-id <SPACE_ID> scripts/contentful-migrations/migration_runner.js \r\n\r\nTypeError: migrationCreator is not a function\r\n    at /Users/<USUR_NAME>/.nvm/versions/node/v9.11.1/lib/node_modules/contentful-cli/node_modules/contentful-migration/built/lib/migration-steps/index.js:139:16\r\n    at tryCatcher (/Users/<USUR_NAME>/.nvm/versions/node/v9.11.1/lib/node_modules/contentful-cli/node_modules/bluebird/js/release/util.js:16:23)\r\n    at Function.Promise.attempt.Promise.try (/Users/<USUR_NAME>/.nvm/versions/node/v9.11.1/lib/node_modules/contentful-cli/node_modules/bluebird/js/release/method.js:39:29)\r\n    at Object.migration (/Users/<USUR_NAME>/.nvm/versions/node/v9.11.1/lib/node_modules/contentful-cli/node_modules/contentful-migration/built/lib/migration-steps/index.js:138:23)\r\n    at migration (/Users/<USUR_NAME>/.nvm/versions/node/v9.11.1/lib/node_modules/contentful-cli/node_modules/contentful-migration/built/lib/migration-parser.js:43:49)\r\n    at run (/Users/<USUR_NAME>/.nvm/versions/node/v9.11.1/lib/node_modules/contentful-cli/node_modules/contentful-migration/built/bin/cli.js:53:29)\r\n    at exports.migration (/Users/<USUR_NAME>/.nvm/versions/node/v9.11.1/lib/node_modules/contentful-cli/dist/cmds/space_cmds/migration.js:82:28)\r\n    at <anonymous>\r\n`\r\n```\r\n\r\n```\r\nconst runMigration = require('contentful-migration/built/bin/cli').default;\r\nconst path = require('path');\r\n\r\nconst options = {\r\n  spaceId: '<SPACE_ID>',\r\n  accessToken:\r\n    '<TOKEN>',\r\n  yes: true,\r\n};\r\n\r\nconst migrations = async () => {\r\n  await runMigration({\r\n    ...options,\r\n    ...{\r\n      filePath: path.join(__dirname, '<FILE_PATH>'),\r\n    },\r\n  });\r\n\r\n  await runMigration({\r\n    ...options,\r\n    ...{ filePath: path.join(__dirname, '<FILE_PATH>') },\r\n  });\r\n\r\n  await runMigration({\r\n    ...options,\r\n    ...{ filePath: path.join(__dirname, '<FILE_PATH>') },\r\n  });\r\n\r\n  await runMigration({\r\n    ...options,\r\n    ...{ filePath: path.join(__dirname, '<FILE_PATH>') },\r\n  });\r\n};\r\n\r\nmigrations();\r\n```\r\n\r\n## Steps to Reproduce\r\n\r\n1. Run the script in the console\r\n\r\n## Context\r\n\r\nI am unable to run the migration scripts in order. The error that is provided is not very helpful and seems to be an internal application error.\r\n\r\n## Environment\r\n\r\n-   **Node Version**: 9.11.1\r\n-   **Package Manager Version**: 5.6\r\n-   **Operating System**: MAC OS 10.13.5\r\n-   **Package Version**:   \"contentful-migration\": \"^0.10.0\",\r\n"}}
{"actor":{"display_login":"Khaledgarbaya"}}