Skip to content

Can't use import syntax (ES6 module) in the Forest Folder #961

Description

@kamil-hammouche

Expected behavior

I should be able to load dependencies using the import syntax (ES6 module)

Actual behavior

I can only use the require syntax (CommonJS)

Failure Logs

An error occured while computing the Forest schema. Your application schema cannot be synchronized with Forest. Your admin panel might not reflect your application models definition. Cannot use import statement outside a module

Context

There's no issues using the import syntax everywhere, but when used in the forest folder, it doesn't build.

  • Package Version: 8.5.3
  • Express Version: 9.4.4
  • Sequelize Version: 6.19.0

Activity

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