Similar to export default, does Node.js not support import;

In Node.js development, it is recommended to use module.exports and export default be used for front-end development.

Does the same apply to import as it does to require()? i.e. does Node.js support the import method, or should the require() method be used instead?

I believe it depends on the version of Node that you’re running.

The latest version, v15.6 at the time of writing, seems to support the ES6 import as well as require.