Skip to content

xpath is not a function #504

Description

@ajmichels

When I look in your examples in the README file I see the following line:

select = require("xml-crypto").xpath

However, when I use this code I get an error about select not being a function. When I look into the code it appears that xpath is not being exported so select is undefined.

Is this a mistake in the example or a mistake in the code. I am seeing a lot of other issues where people are using require("xml-crypto").xpath but seemingly not having the same issue I am. I tried to look through the commit history to see if maybe it was being exported in a previous version but I didn't spot it (yet). Maybe I am just doing something wrong, not sure.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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