title: StackBlitz Error in /turbo_modules/@firebase/database@0.6.6/dist/index.cjs.js: Cannot read property 'registerComponent' of undefined
body: <p>I've been trying to reproduce a problem in my Angular 9 app on stackBlitz. I've been having to add increasing layers of complexity to reproduce the problem, so please forgive the seeming unnecessary complexity of this stackBlitz example. However, I cannot figure out what the current error is; it's something I've never experienced in my local environment.</p>
  <p>Error:</p>
  <blockquote>
  <p>Error in /turbo_modules/@firebase/database@0.6.6/dist/index.cjs.js
  (15370:39) Cannot read property 'registerComponent' of undefined</p>
  </blockquote>
  <p>Stacktrace in the console:</p>
  <blockquote>
  <p>Unhandled Promise rejection: Cannot read property 'registerComponent'
  of undefined ; Zone:  ; Task: null ; Value: Error: Cannot read
  property 'registerComponent' of undefined TypeError: Cannot read
  property 'registerComponent' of undefined at registerDatabase
  (<a href="https://routing-angular-1dz9hr.stackblitz.io/turbo_modules/@firebase/database@0.6.6/dist/index.cjs.js:15370:39" rel="nofollow noreferrer">https://routing-angular-1dz9hr.stackblitz.io/turbo_modules/@firebase/database@0.6.6/dist/index.cjs.js:15370:39</a>)
  at Object.eval
  (<a href="https://routing-angular-1dz9hr.stackblitz.io/turbo_modules/@firebase/database@0.6.6/dist/index.cjs.js:15395:1" rel="nofollow noreferrer">https://routing-angular-1dz9hr.stackblitz.io/turbo_modules/@firebase/database@0.6.6/dist/index.cjs.js:15395:1</a>)
  at eval
  (<a href="https://routing-angular-1dz9hr.stackblitz.io/turbo_modules/@firebase/database@0.6.6/dist/index.cjs.js:15407:4" rel="nofollow noreferrer">https://routing-angular-1dz9hr.stackblitz.io/turbo_modules/@firebase/database@0.6.6/dist/index.cjs.js:15407:4</a>)
  at eval
  (<a href="https://routing-angular-1dz9hr.stackblitz.io/turbo_modules/@firebase/database@0.6.6/dist/index.cjs.js:15408:3" rel="nofollow noreferrer">https://routing-angular-1dz9hr.stackblitz.io/turbo_modules/@firebase/database@0.6.6/dist/index.cjs.js:15408:3</a>)
  at eval () at Qt
  (https://c.staticblitz.com/d/webcontainer.a32b752fbc9b442489b.js:15:30145)
  at
  https://c.staticblitz.com/d/webcontainer.a32b752fbc9b442489b.js:15:38799
  at U
  (https://c.staticblitz.com/d/webcontainer.a32b752fbc9b442489b.js:15:13565)
  at
  https://c.staticblitz.com/d/webcontainer.a32b752fbc9b442489b.js:15:13207
  at Object.eval
  (https://routing-angular-1dz9hr.stackblitz.io/turbo_modules/firebase@7.15.5/database/dist/index.cjs.js:3:1)</p>
  </blockquote>
  <p>Stackblitz example:
  <a href="https://stackblitz.com/edit/routing-angular-bnv6rm" rel="nofollow noreferrer">https://stackblitz.com/edit/routing-angular-bnv6rm</a></p>
  <p>If anyone has an idea what is wrong and/or how I might best approach troubleshooting on StackBlitz (sometimes, the errors and strack traces are not super clear), that would be awesome!</p>