Skip to content

Typescript migrations doesn't work #1053

@andrejleitner

Description

@andrejleitner

What you are doing?

I have migrations written in typescript. These compiled worked fine until CLI of version 6.1.0. They don't after updating to version 6.4.1.

npx sequelize db:migrate --env development

What is actually happening?

ERROR: Cannot use import statement outside a module

Dialect: mysql
Database version: 5.7
Sequelize CLI version: 6.4.1
Sequelize version: 6.15.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions