hotwired / turbo-rails

Use Turbo in your Ruby on Rails app
https://turbo.hotwired.dev
MIT License
2.12k stars 328 forks source link

Error with minify after upgrade from 8.0.10 to 8.0.11 #694

Closed izu23 closed 1 week ago

izu23 commented 1 week ago

After i upgraded from version 8.0.10 to 8.0.11 i got the following issue:

Uncaught TypeError: ya is not a function

at this positon:

function bi(t, n) { return ya(t, n) && !nt.drive.unvisitableExtensions.has(_a(t)) }

im using this build "build": "esbuild app/javascript/application.js --bundle --minify --sourcemap --format=esm --outdir=app/assets/builds --public-path=/assets --tree-shaking=false"

these are my dependencies

"dependencies": { "@hotwired/turbo": "8.0.10", "@hotwired/turbo-rails": "8.0.10", "blueimp-file-upload": "^10.32.0", "esbuild": "^0.21.5", "jquery": "^3.7.1", "sass": "^1.80.4" }, "resolutions": { "@hotwired/turbo": "8.0.10" }

and im using node 22.8.0

this is my application.js

import './src/init_jquery'; import './vendor/jquery-ui'; import "@hotwired/turbo-rails"

and this the init_jquery.js

import jquery from 'jquery'; window.$ = jquery; window.jQuery = jquery; $ = jquery;

izu23 commented 1 week ago

posted it on turbo not turbo-rails