Code Monkey home page Code Monkey logo

Comments (4)

fffonion avatar fffonion commented on August 12, 2024 1

@akira28 Thanks, I think it might be caused by jest 26 implictly depends on some module that provides the Headers class. Let me see if I can reproduce for the kong.response.error one.

from kong-js-pdk.

fffonion avatar fffonion commented on August 12, 2024 1

I just checked thatnode-fetch has been added as a dev deps in #25.
And the missing PDK function should be solved by #35.

from kong-js-pdk.

fffonion avatar fffonion commented on August 12, 2024

@akira28 Could you share the nodejs version and kong-js-pdk version you are using? And if possible, did you see
the error for example tests on your side?

from kong-js-pdk.

akira28 avatar akira28 commented on August 12, 2024

kong-js-pdk: 0.3.5
Node.js: v14.16.1
Jest: 27.0.6

I downloaded and executed the examples, and they worked as expected. I found out that with jest 26 the error ReferenceError: Headers is not defined is solved, but function kong.response.error is not a valid PDK function is still there

from kong-js-pdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.