Quantcast
Channel: Active questions tagged require - Stack Overflow
Viewing all articles
Browse latest Browse all 144

Using import vs require with Node and Sequelize

$
0
0

I'm using type module/import syntax for the rest of my project, but the Sequelize cli generates files with require syntax. How should I handle this? I'm already having trouble with not being able to import a file that I renamed to .cjs so sequelize can run it as it uses the require syntax and I'm sure there will be other issues


Viewing all articles
Browse latest Browse all 144

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>