ryer.io

GDK Registration Webpack Error

TL;DR

  • Ran GDK locally and went to http://gdk.test:3000 to create a new user account
  • Clicked Register and got a webpack runtime error in the browser
  • Error: ‘Cannot read properties of null (reading addEventListener)’ at initOnboardingEmailOptIn
  • Error traced through pages.registrations.new.chunk.js and webpack runtime bundle

Details

While running the GDK locally, I went to http://gdk.test:3000 and attempted to create a new user account by clicking Register. This produced a webpack error in the browser console: Uncaught runtime errors - TypeError: Cannot read properties of null (reading ‘addEventListener’) at initOnboardingEmailOptIn (webpack-internal:///QFAg:23:19), with the stack trace running through eval, Module.euKw, webpack_require, fn, and checkDeferredModules in the runtime bundle and pages.registrations.new.chunk.js.