Skip to content

Warning: Accessing non-existent property '__esModule' of module exports inside circular dependency #887

Closed

Description

On heroku I'm getting this error of module exports inside circular dependency. It appears to work locally though.

It never actually runs the migrations.

Any ideas?

$ heroku run sequelize db:migrate
Running sequelize db:migrate on ⬢ trendmobile... up, run.8730 (Hobby)

Sequelize CLI [Node: 14.0.0, CLI: 5.5.1, ORM: 5.21.6]

(node:4) Warning: Accessing non-existent property '__esModule' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:4) Warning: Accessing non-existent property '__esModule' of module exports inside circular dependency
(node:4) Warning: Accessing non-existent property '__esModule' of module exports inside circular dependency
(node:4) Warning: Accessing non-existent property '__esModule' of module exports inside circular dependency
(node:4) Warning: Accessing non-existent property '__esModule' of module exports inside circular dependency
(node:4) Warning: Accessing non-existent property '__esModule' of module exports inside circular dependency
(node:4) Warning: Accessing non-existent property '__esModule' of module exports inside circular dependency
(node:4) Warning: Accessing non-existent property '__esModule' of module exports inside circular dependency
Loaded configuration file "database/config/config.js".
Using environment "production".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions