Skip to content

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

Closed

Description

@acanyon

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".

Activity

  1. japel commented on Apr 28, 2020

    @japel

    happens also for me with Node 14... with Node 12.x it works fine

  2. fuzunspm commented on Apr 28, 2020

    @fuzunspm

    same issue here with node 14

  3. Swapnull commented on Apr 29, 2020

    @Swapnull

    This is a problem with node 14 - nodejs/node#33048
    It has been fixed and will be released as part of the 14.1.0 release - nodejs/node#33103

  4. papb commented on Apr 29, 2020

    @papb
    Member

    Yes, precisely! Thanks @Swapnull! Node v14.1.0 has been released:

    module: do not warn when accessing __esModule of unfinished exports (Anna Henningsen) #33048

  5. acanyon commented on Apr 30, 2020

    @acanyon
    Author

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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