title: Not able to use babel "preset-env" plugin with NextJS
body: <p>I have a requirement where I am trying to use the Babel plugin &quot;preset-env&quot;. This plugin compiles my NextJS project from ES6 to ES5. I have created the <code>.babelrlc</code> file as suggested by NextJS documentation and added my plugin like this:</p>
  <pre><code>{
      &quot;presets&quot;: [&quot;next/babel&quot;],
      &quot;plugins&quot;: [&quot;@babel/preset-env&quot;]
  }
  </code></pre>
  <p>When I try to run my project locally I get this error:</p>
  <pre><code>error - ./node_modules/next/dist/client/router.js
  Error: Cannot find module '@babel/plugin-preset-env' from '/Users/agastya/Local/testcap/Sample-proj'
  - If you want to resolve &quot;@babel/preset-env&quot;, use &quot;module:@babel/preset-env&quot;
  - Did you accidentally pass a preset as a plugin?
  </code></pre>
  <p>NextJS documentation says &quot;<em>Next.js includes the <code>next/babel</code> preset to your app, which includes everything needed to compile React applications and server-side code.</em> &quot;.</p>
  <p>It would be great if someone can explain where/what is the right approach to fix this.</p>