Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Cannot read properties of undefined (reading 'includes') #47

@rlisac

Description

@rlisac

Bug report

Required System information

  • Node.js version: 16.13.2
  • NPM version: 8.1.2
  • Source Strapi version: 3.6.8
  • Target Strapi version: 4.3.8
  • Source Database: mysql
  • Target Database: mysql
  • Operating system: OSX
  • Which script are you running: v3-sql-v4-sql

Describe the bug

When running the script, the script aborts with the following error:
const v3RelationTables = tables.filter((t) => t.includes("__"));
TypeError: Cannot read properties of undefined (reading 'includes')

Steps to reproduce the behavior

  1. Go to 'nvm use 16'
  2. Run $ yarn
  3. Run $ yarn start
  4. See error

Screenshots

issue_RLI

Code snippets

const v3RelationTables = tables.filter((t) => t.includes("__"));

Additional context

Before starting the script, I had to adjust certain columns in the table to be compliant with the snake_case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bugseverity: lowIf the issue only affects a very niche base of users and an easily implemented workaround can solvesource: v3-SQL to v4-SQLstatus: pending reproductionWaiting for free time to reproduce the issue, or more information

    Type

    No type

    Projects

    Status

    To be reviewed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions