Skip to content

path-deps: Cannot set properties of undefined (setting 'PathDeps') #168

@p-baum

Description

@p-baum

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',
    }),
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions