Coder Social home page Coder Social logo

active-requests's People

Contributors

dependabot[bot] avatar kjleitz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

active-requests's Issues

Importing activeRequests throws error

Hi @kjleitz!

I'm trying to implement active-requests into an existing React project (created with create-react-app). After installing it using npm, I imported activeRequests in App.js file but the app immediately throws an error, shown on an image below:

npm-active-requests-issue

It looks like that everything is working as expected though, I can console log activeRequests and can see all the properties and methods it has. I just can't get rid of the error that pops up on the screen whenever a page is reloaded (except by clicking on the 'x' in the top right corner of the error, but that's not a solution).

I tried importing activeRequests in other files, tried also importing it in a new React project, but the error is always there.

I know that I can also import a CDN script (tried that and it works), but that isn't an option for me as my project does not allow external resources in production.

Am I doing something wrong here or is the issue in the package itself?

Edit: I noticed that when built with output.globalObject removed from webpack.config.js, the error is gone. Can you please check if that 'hack' you added can/should be removed?

Thanks!

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.