Giter Site home page Giter Site logo

prezly / javascript-sdk Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 3.0 1.69 MB

Javascript SDK to integrate Coverage sources into Prezly application

Home Page: https://www.prezly.com/

License: MIT License

TypeScript 99.30% JavaScript 0.70%
api coverage prezly sdk

javascript-sdk's People

Contributors

aspirisen avatar atrauzzi avatar dependabot[bot] avatar digitalbase avatar e1himself avatar fgyimah avatar kamilmielnik avatar kudlajz avatar marko-ogg avatar markogresak avatar mohammadxali avatar pestaa avatar riffbyte avatar yuriyyakym avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

javascript-sdk's Issues

Error with "url" dependency when using SDK in the browser

I'm getting this error when trying to use sdk in the browser environment:

ApiError.js?3976:20 Uncaught (in promise) Error: API Error (0): url_1.URL is not a constructor
    at new ApiError (ApiError.js?3976:20)
    at Object.eval (createRequest.js?b0f4:138)
    at step (createRequest.js?b0f4:44)
    at Object.eval [as next] (createRequest.js?b0f4:25)
    at eval (createRequest.js?b0f4:19)
    at new Promise (<anonymous>)
    at __awaiter (createRequest.js?b0f4:15)
    at Object.createRequest [as default] (createRequest.js?b0f4:91)
    at Object.get (Api.js?fab1:11)
    at ApiClient.get (ApiClient.js?2844:25)
    at NewsroomLanguages.eval (NewsroomLanguages.js?6a02:77)
    at step (NewsroomLanguages.js?6a02:33)
    at Object.eval [as next] (NewsroomLanguages.js?6a02:14)
    at eval (NewsroomLanguages.js?6a02:8)
    at new Promise (<anonymous>)
    at __awaiter (NewsroomLanguages.js?6a02:4)
    at NewsroomLanguages.get (NewsroomLanguages.js?6a02:71)
    at <anonymous>:1:49

It's because of this import:

import { URL } from 'url';


I think we need to do something like this: https://stackoverflow.com/a/58232594

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.