You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like this issue has come up before, but with a different version of Turbo. I'm using turbo-rails v2.0.3.
$ bundle exec rails assets:precompile
rails aborted!
Uglifier::Error: Unexpected token: keyword (const). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true). (Uglifier::Error)
--
22 submitter.type == "submit" || raise(TypeError, "The specified element is not a submit button");
23 submitter.form == form || raise(DOMException, "The specified element is not owned by this form element", "NotFoundError");
24 }
25 function raise(errorConstructor, message, name) {
26 throw new errorConstructor("Failed to execute 'requestSubmit' on 'HTMLFormElement': " + message + ".", name);
27 }
28 })(HTMLFormElement.prototype);
29
=> const submittersByForm = new WeakMap;
31
32 function findSubmitterFromClickTarget(target) {
33 const element = target instanceof Element ? target : target instanceof Node ? target.parentElement : null;
34 const candidate = element ? element.closest("input, button") : null;
35 return candidate?.type == "submit" ? candidate : null;
36 }
37
38 function clickCaptured(event) {
==
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
I followed the error message and added the following configuration.
It looks like this issue has come up before, but with a different version of Turbo. I'm using turbo-rails v2.0.3.
I followed the error message and added the following configuration.
But, unfortunately, I get the same error.
The text was updated successfully, but these errors were encountered: