title: TypeError: Cannot read properties of null (reading 'suppressHydrationWarning')
body: <p>I'm trying out building modules for another project that uses NextJS. I built a simple &quot;Test&quot; react component, using create-react-app as a base starting point. Shown below. I see it show up on the NextJS project but I get the following error as well.</p>
  <h2>create-react-app - Test (the proposed module library)</h2>
  <h3>Test.js</h3>
  <pre><code>import React from &quot;react&quot;;
  
  export default function Test() {
    return &lt;p&gt;Hello!&lt;/p&gt;;
  }
  
  export {
    Test
  };
  
  </code></pre>
  <h3>index.js</h3>
  <pre><code>export * from &quot;./Test&quot;;
  
  </code></pre>
  <h3>Build command</h3>
  <pre><code>&quot;build&quot;: &quot;rm -rf ./dist &amp;&amp; cross-env BABEL_ENV=production babel src -d dist&quot;,
  </code></pre>
  <h2>NextJS -</h2>
  <h3>index.tsx</h3>
  <pre><code>import type { NextPage } from 'next'
  import AboutMe from &quot;../sections/AboutMe&quot;;
  import Layout from &quot;../layout/Layout&quot;;
  import {Row, Col} from &quot;react-bootstrap&quot;;
  // @ts-ignore
  import {Test} from // the packed repo
  
  const Home: NextPage = () =&gt; {
      console.log(Test);
    return (
        &lt;Layout&gt;
            &lt;Row&gt;
                &lt;Col&gt;
                    &lt;AboutMe/&gt;
                &lt;/Col&gt;
                &lt;Col&gt;
                    &lt;p&gt;teest&lt;/p&gt;
                    &lt;Test/&gt;
                &lt;/Col&gt;
            &lt;/Row&gt;
        &lt;/Layout&gt;
    )
  }
  
  export default Home
  
  </code></pre>
  <h2>Error</h2>
  <pre><code>Unhandled Runtime Error
  TypeError: Cannot read properties of null (reading 'suppressHydrationWarning')
  
  Call Stack
  didNotFindHydratableInstance
  node_modules/react-dom/cjs/react-dom.development.js (10511:0)
  insertNonHydratedInstance
  node_modules/react-dom/cjs/react-dom.development.js (14509:0)
  tryToClaimNextHydratableInstance
  node_modules/react-dom/cjs/react-dom.development.js (14596:0)
  updateHostComponent
  node_modules/react-dom/cjs/react-dom.development.js (17610:0)
  beginWork
  node_modules/react-dom/cjs/react-dom.development.js (19080:0)
  HTMLUnknownElement.callCallback
  node_modules/react-dom/cjs/react-dom.development.js (3945:0)
  Object.invokeGuardedCallbackDev
  node_modules/react-dom/cjs/react-dom.development.js (3994:0)
  invokeGuardedCallback
  node_modules/react-dom/cjs/react-dom.development.js (4056:0)
  beginWork$1
  node_modules/react-dom/cjs/react-dom.development.js (23964:0)
  performUnitOfWork
  node_modules/react-dom/cjs/react-dom.development.js (22776:0)
  workLoopSync
  node_modules/react-dom/cjs/react-dom.development.js (22707:0)
  renderRootSync
  node_modules/react-dom/cjs/react-dom.development.js (22670:0)
  performSyncWorkOnRoot
  node_modules/react-dom/cjs/react-dom.development.js (22293:0)
  scheduleUpdateOnFiber
  node_modules/react-dom/cjs/react-dom.development.js (21881:0)
  updateContainer
  node_modules/react-dom/cjs/react-dom.development.js (25482:0)
  eval
  node_modules/react-dom/cjs/react-dom.development.js (26021:0)
  unbatchedUpdates
  node_modules/react-dom/cjs/react-dom.development.js (22431:0)
  legacyRenderSubtreeIntoContainer
  node_modules/react-dom/cjs/react-dom.development.js (26020:0)
  Object.hydrate
  node_modules/react-dom/cjs/react-dom.development.js (26086:0)
  renderReactElement
  node_modules/next/dist/client/index.js (480:30)
  doRender
  node_modules/next/dist/client/index.js (665:4)
  _callee2$
  node_modules/next/dist/client/index.js (375:18)
  tryCatch
  node_modules/regenerator-runtime/runtime.js (63:15)
  Generator.invoke [as _invoke]
  node_modules/regenerator-runtime/runtime.js (294:0)
  Generator.eval [as next]
  node_modules/regenerator-runtime/runtime.js (119:0)
  asyncGeneratorStep
  node_modules/next/dist/client/index.js (28:28)
  _next
  node_modules/next/dist/client/index.js (46:16)
  eval
  node_modules/next/dist/client/index.js (51:12)
  new Promise
  &lt;anonymous&gt;
  Object.eval
  node_modules/next/dist/client/index.js (43:15)
  Object._render
  node_modules/next/dist/client/index.js (393:19)
  Object.render
  node_modules/next/dist/client/index.js (396:19)
  eval
  node_modules/next/dist/client/next-dev.js (79:15)
  eval
  node_modules/next/dist/client/dev/fouc.js (12:12)
  </code></pre>