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

Unable to import issues #152

Open
aman00323 opened this issue Aug 30, 2022 · 6 comments
Open

Unable to import issues #152

aman00323 opened this issue Aug 30, 2022 · 6 comments

Comments

@aman00323
Copy link

settings.ts

import Settings from './src/settings';

export default {
  gitlab: {
    url: 'https://gitlab.com',
    token: 'glpat-_asdasdasdasdqweqwe',
    projectId: 1111111,
    sessionCookie: 'token',
  },
  github: {
    baseUrl: 'https://github.com',
    // apiUrl: 'https//api.github.mycompany.com',
    owner: 'aman00323',
    token: 'asdasdasdasdadasdasd',
    token_owner: 'aman00323',
    repo: 'asdasdasd-asdas',
    recreateRepo: true,
  },
  s3: {
    accessKeyId: '{{accessKeyId}}',
    secretAccessKey: '{{secretAccessKey}}',
    bucket: 'my-gitlab-bucket',
  },
  usermap: {
  },
  projectmap: {
  },
  conversion: {
    useLowerCaseLabels: true,
  },
  transfer: {
    description: false,
    milestones: false,
    labels: false,
    issues: true,
    mergeRequests: false,
    releases: false,
  },
  debug: true,
  useIssueImportAPI: true,
  usePlaceholderMilestonesForMissingMilestones: true,
  usePlaceholderIssuesForMissingIssues: true,
  useReplacementIssuesForCreationFails: true,
  useIssuesForAllMergeRequests: false,
  filterByLabel: null,
  skipMergeRequestStates: [],
  skipMatchingComments: [],
  mergeRequests: {
    logFile: './merge-requests.json',
    log: true,
  },
} as Settings;

Error

Error during transfer:
TypeError: issues.sort is not a function
    at /home/aman/Desktop/node-gitlab-2-github/src/index.ts:397:19
    at step (/home/aman/Desktop/node-gitlab-2-github/src/index.ts:52:23)
    at Object.next (/home/aman/Desktop/node-gitlab-2-github/src/index.ts:33:53)
    at fulfilled (/home/aman/Desktop/node-gitlab-2-github/src/index.ts:24:58)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)


Transfer complete!
@vmucury
Copy link

vmucury commented May 19, 2023

Hi @aman00323
I have the same problem here. Do you have any updates about this case?
Thank you!

@ddavyMRS
Copy link

@aman00323 @vmucury

What version of TypeScript are you using?

@vmucury
Copy link

vmucury commented May 31, 2023

Hi @mrs-electronics

Im using:

[email protected]
│ └── [email protected] deduped
└── [email protected]

@ddavyMRS
Copy link

What happens if you run npm i -g --save-dev ?

@vmucury
Copy link

vmucury commented May 31, 2023

I run this cmd and the output is:
added 1 package in 180ms

@VictorrLiu
Copy link

VictorrLiu commented Mar 20, 2024

I had this problem as well!
There is a whole list of packages versions gitlab-2-github requires. It is much easier to use docker to do that, as they already have a docker container for that.

Just follow the usage steps "Docker": https://github.com/piceaTech/node-gitlab-2-github?tab=readme-ov-file#docker
or "Docker with bind mounts": https://github.com/piceaTech/node-gitlab-2-github?tab=readme-ov-file#docker-with-bind-mounts
in the README.

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

4 participants