Cannot read property 'document' of null error

Hello!
I’m trying run hotwire in one project but I receive this message in validations errors

Full message:

VM6999 frame-modern.7e929f7e.js:1 Uncaught TypeError: Cannot read property 'document' of null
    at s (VM6971 frame-modern.7e929f7e.js:1)
    at Object.read (VM6971 frame-modern.7e929f7e.js:1)
    at VM6971 frame-modern.7e929f7e.js:1
    at session_Session.createOrUpdateUser (VM6971 frame-modern.7e929f7e.js:1)
    at app_App.createOrUpdateUser (VM6971 frame-modern.7e929f7e.js:1)
    at Object.update (VM6971 frame-modern.7e929f7e.js:1)
    at VM6971 frame-modern.7e929f7e.js:1
    at <anonymous>:3:311
    at <anonymous>:3:748
    at replaceElementWithElement (turbo.es2017-esm.js:4092)
s @ VM6999 frame-modern.7e929f7e.js:1
read @ VM6999 frame-modern.7e929f7e.js:1
(anonymous) @ VM6999 frame-modern.7e929f7e.js:1
createOrUpdateUser @ VM6999 frame-modern.7e929f7e.js:1
createOrUpdateUser @ VM6999 frame-modern.7e929f7e.js:1
update @ VM6999 frame-modern.7e929f7e.js:1
(anonymous) @ VM6999 frame-modern.7e929f7e.js:1
(anonymous) @ VM7014:3
(anonymous) @ VM7014:3
replaceElementWithElement @ turbo.es2017-esm.js:4092
assignNewBody @ turbo.es2017-esm.js:4024
replaceBody @ turbo.es2017-esm.js:3877
(anonymous) @ turbo.es2017-esm.js:3852
renderView @ turbo.es2017-esm.js:3628
render @ turbo.es2017-esm.js:3851
render @ turbo.es2017-esm.js:4071
renderSnapshot @ turbo.es2017-esm.js:4228
render @ turbo.es2017-esm.js:4185
_callee16$ @ turbo.es2017-esm.js:3222
tryCatch @ runtime.js:63
invoke @ runtime.js:293
(anonymous) @ runtime.js:118
asyncGeneratorStep @ turbo.es2017-esm.js:51
_next @ turbo.es2017-esm.js:53
Promise.then (async)
asyncGeneratorStep @ turbo.es2017-esm.js:51
_next @ turbo.es2017-esm.js:53
(anonymous) @ turbo.es2017-esm.js:53
(anonymous) @ turbo.es2017-esm.js:53
formSubmissionFailedWithResponse @ turbo.es2017-esm.js:3237
requestFailedWithResponse @ turbo.es2017-esm.js:894
_callee2$ @ turbo.es2017-esm.js:629
tryCatch @ runtime.js:63
invoke @ runtime.js:293
(anonymous) @ runtime.js:118
asyncGeneratorStep @ turbo.es2017-esm.js:51
_next @ turbo.es2017-esm.js:53
(anonymous) @ turbo.es2017-esm.js:53
(anonymous) @ turbo.es2017-esm.js:53
receive @ turbo.es2017-esm.js:643
_callee$ @ turbo.es2017-esm.js:577
tryCatch @ runtime.js:63
invoke @ runtime.js:293
(anonymous) @ runtime.js:118
asyncGeneratorStep @ turbo.es2017-esm.js:51
_next @ turbo.es2017-esm.js:53
Promise.then (async)
asyncGeneratorStep @ turbo.es2017-esm.js:51
_next @ turbo.es2017-esm.js:53
(anonymous) @ turbo.es2017-esm.js:53
(anonymous) @ turbo.es2017-esm.js:53
perform @ turbo.es2017-esm.js:602
_callee3$ @ turbo.es2017-esm.js:806
tryCatch @ runtime.js:63
invoke @ runtime.js:293
(anonymous) @ runtime.js:118
asyncGeneratorStep @ turbo.es2017-esm.js:51
_next @ turbo.es2017-esm.js:53
(anonymous) @ turbo.es2017-esm.js:53
(anonymous) @ turbo.es2017-esm.js:53
start @ turbo.es2017-esm.js:817
submitForm @ turbo.es2017-esm.js:3138
formSubmitted @ turbo.es2017-esm.js:4389
FormSubmitObserver.submitBubbled @ turbo.es2017-esm.js:2792

On logs Rails processing as TURBO_STREAM

I’m import Turbo with:

import { Turbo, cable } from "@hotwired/turbo-rails"

window.Turbo = Turbo

Any ideia about this problem? Thanks!