I'm using Vite. In development mode it works fine. But somethings going wrong when budling.:
Uncaught TypeError: Cannot set properties of undefined (setting 'PathDeps')
The debug extension is working fine.
htmx.js
import htmx from 'htmx.org';
window.htmx = htmx;
main.js
import './htmx.js';
import 'htmx-ext-path-deps';
import "htmx-ext-debug";
import "htmx-ext-alpine-morph";
...
vite.config.js
plugins: [
inject({
htmx: 'htmx.org',
}),
...