Skip to content

I'm trying to use with partytown but I'm getting `XPathEvaluator not defined" error #3389

@kodmanyagha

Description

@kodmanyagha

Hi folks, as I specified at the title I'm getting XPathEvaluator error when I'm loading everything with partytown. Let me show the code:

  <script type="text/javascript" src="~partytown/partytown.js"></script>

  <meta name="htmx-config"
        content='{"responseHandling": [{"code":"...", "swap": true}], "historyCacheSize": 0, "getCacheBusterParam": true}' />
  <script type="text/partytown"
          src="https://cdnjs.cloudflare.com/ajax/libs/htmx/2.0.6/htmx.min.js"></script>

The error: TypeError: XPathEvaluator is not a constructor

Also I have a javascript file which contains general functions but other javascript files can't reach to these functions. For example there is functions.js and auth.js files. There is a function which name is showAlert() in functions.js and I'm trying to invoke this function in auth.js file. But I'm getting that error: showAlert is not defined.

Do you have any suggestion? Thanks.

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