Skip to content

ERROR: Unexpected token 'export' #2

Open
@MustafizSaadi

Description

@MustafizSaadi

What you are doing?

Trying to apply the migration to postgres database with following CLI command:

npx sequelize-cli-ts-js db:migrate

What do you expect to happen?

I want the migration to be applied

What is actually happening?

But getting this:
Sequelize CLI [Node: 21.7.2, CLI: 1.1.2, ORM: 6.37.3]

Loaded configuration file "config\config.json".
Using environment "development".
== 20240423122504-create-item: migrating =======

ERROR: Unexpected token 'export'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions