title: Upgrading Node JS and ERR_REQUIRE_ESM: Must use import to load ES Module: 'inheritsloose.js' of Babel Runtime
body: <p>The following error is emitted in my Node JS/React JS application after upgrading Node JS to v.12. I'm currently using @babel/core 7.10.1. How should this error be resolved?</p>
  
  <p><a href="https://i.stack.imgur.com/ZO2IZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZO2IZ.png" alt="Log of error emitted from Babel"></a></p>
  
  <p>Here is my babel.config.js:</p>
  
  <pre><code>module.exports = {
    presets: [
      [
        '@babel/preset-env',
        {
          targets: {
            node: 'current',
          },
        },
      ],
      '@babel/preset-react',
      '@babel/preset-typescript',
    ],
    plugins: [
      '@babel/plugin-proposal-class-properties',
      ['@babel/plugin-proposal-decorators', { legacy: true }],
      '@babel/plugin-proposal-export-default-from',
      '@babel/plugin-proposal-export-namespace-from',
      '@babel/plugin-syntax-dynamic-import',
      '@babel/plugin-transform-react-constant-elements',
      '@babel/plugin-transform-react-inline-elements',
    ],
    ignore: ['node_modules', 'build'],
  };
  </code></pre>