Stack Overflow Asked by wdGelwix on January 3, 2022
Is there a way to execute Sequelize migrations with the ESM package? It requires the -r esm
command line argument to be passed, but I don’t seem to find that in their docs
I had the same issue and the way I got around it is by calling sequelize-cli from the node_modules folder.
In my package.json
{
"scripts": {
"migrate": "node --require esm ./node_modules/.bin/sequelize-cli db:migrate"
}
}
then if you run npm run migrate
it should work with es6 imports.
Answered by Abir Taheer on January 3, 2022
0 Asked on February 3, 2021 by abdelhalim
3 Asked on February 2, 2021 by webdesignnoob
1 Asked on February 2, 2021 by daniu
completable future executorservice java java util concurrent
1 Asked on February 2, 2021 by gaston-fassi-lavalle
android android styles android textinputlayout android theme material components android
2 Asked on February 2, 2021 by dany952
1 Asked on February 2, 2021 by jsouza
2 Asked on February 2, 2021 by mnu-nasir
0 Asked on February 1, 2021 by harsh-dhamecha
3 Asked on February 1, 2021 by umar-zahid
2 Asked on February 1, 2021 by jordan-ford
2 Asked on February 1, 2021
1 Asked on February 1, 2021 by radosaw-hryniewicki
1 Asked on February 1, 2021 by caner-akmak
1 Asked on February 1, 2021 by jae-young-lee
Get help from others!
Recent Questions
Recent Answers
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP