DEV Community

4Z4T4R
4Z4T4R

Posted on

Answer: How to import MongoDB using es6 style imports?

Listen, I know there are more than a handful of cracks at this solution here. Some may work for you, but for me, none solved me but the one below.

2021 UPDATE:

BORING BACKSTORY ALERT

We're using Node v14.15.5 and our package.json has "type": "module" set. So, our code is…

Top comments (0)