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
The example isn't working for me when I'm trying to implement it into a Rails 7.1 project with ESBUILD and Tailwind.
$ esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds --public-path=/assets
X [ERROR] Top-level await is currently not supported with the "iife" output format
app/javascript/application.js:84:0:
84 │ await window.LambdaCable.start();
╵ ~~~~~
Edit: I've manage to solve this by using something like this:
However it's still not working.. The browser tries to make requests to the CloudFront distribution instead of the API Gateway. The action_cable.mount_path and action_cable.url are overwritten in the production.rb. Any ideas?
The text was updated successfully, but these errors were encountered:
The example isn't working for me when I'm trying to implement it into a Rails 7.1 project with ESBUILD and Tailwind.
Edit: I've manage to solve this by using something like this:
However it's still not working.. The browser tries to make requests to the CloudFront distribution instead of the API Gateway. The
action_cable.mount_path
andaction_cable.url
are overwritten in theproduction.rb
. Any ideas?The text was updated successfully, but these errors were encountered: