Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kamil-hammouche opened this issue May 28, 2022 · 0 comments
Open

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

kamil-hammouche opened this issue May 28, 2022 · 0 comments

Comments

@kamil-hammouche
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant