-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RangeError: Maximum call stack size exceeded #526
Comments
seanpdoyle
added a commit
to seanpdoyle/turbo
that referenced
this issue
Nov 27, 2023
Closes [hotwired#526][] Prevent naming collisions between the new `Turbo.fetch` function and the built-in `window.fetch` function. To do so, create a module-local reference to `window.fetch`, and define the exported function as `fetchWithTurboHeaders`. At export-time, rename to `fetch` so that consumers can continue to import it as `Turbo.fetch`. [hotwired#526]: hotwired/turbo-rails#526
@psantos10 Thank you for opening this issue! I've opened hotwired/turbo#1077 to try and resolve this issue. |
I think the proper fix for this should be in the jsbundling-rails generator. See rails/jsbundling-rails#178 In the meantime, anyone hitting this issue can fix it adding type: "module" to |
domchristie
pushed a commit
to domchristie/turbo
that referenced
this issue
Jul 20, 2024
Closes [hotwired#526][] Prevent naming collisions between the new `Turbo.fetch` function and the built-in `window.fetch` function. To do so, create a module-local reference to `window.fetch`, and define the exported function as `fetchWithTurboHeaders`. At export-time, rename to `fetch` so that consumers can continue to import it as `Turbo.fetch`. [hotwired#526]: hotwired/turbo-rails#526
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just created a new app using the following command:
Then run the following commands:
Created a simple controller with a single
new
action with the related view:If I try to submit the form, the form is not submitted and I got the following error on browser's console:
If I comment the following line in
app/javascript/application.js
:import "@hotwired/turbo-rails"
The app runs fine.The text was updated successfully, but these errors were encountered: