kjleitz / active-requests Goto Github PK
View Code? Open in Web Editor NEWTrack pending async HTTP requests
License: MIT License
Track pending async HTTP requests
License: MIT License
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:
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.