-
-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Error reading config.js, must use import to load ES Module #1067
Comments
This issue has been automatically marked as stale because it has been open for 7 days without activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment or remove the "stale" label. 🙂 |
ping |
This issue has been automatically marked as stale because it has been open for 7 days without activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment or remove the "stale" label. 🙂 |
@mattiamalonni @sdepold |
This issue has been automatically marked as stale because it has been open for 14 days without activity. It will be closed if no further activity occurs within the next 14 days. If this is still an issue, just leave a comment or remove the "stale" label. 🙂 |
. |
I believe this was fixed by #987 |
Issue Creation Checklist
[x] I have read the contribution guidelines
Bug Description
When running the migration from the CLI ('npx sequelize-cli db:migrate'), I am getting the following error:
I've tried renaming it to a .cjs file and I get even more errors. I can't remove the "type":"module" as I have my project fully set up to use that. So I would like to figure out the third option. "change the requiring code to use import()"
SSCCE
Here is the link to the SSCCE for this issue: LINK-HERE
This is my config.js file:
What do you expect to happen?
I wanted it to correctly implement my migration and add in the new field.
What is actually happening?
I am getting the above error instead.
Additional context
Add any other context and details here.
Environment
Bug Report Checklist
How does this problem relate to dialects?
Would you be willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: