Error with JavaScript SDK and Turbolinks/Stimulus?

I’m using 6.0.2 of the Sentry SDK installed into a Rails 5.2 app via yarn. I am initializing Sentry in my app/javascript/packs/application.js file and it loads fine but then when I click on something, which seems to be either a navigation event wtih Turbolinks or another even via Stimulus, I get this error:

Uncaught TypeError: Cannot read property ‘sentry_instrumentation_handlers’ of undefined

Anyone know what might cause this?