I am trying to publish a reactjs npm package with dependency as axios. My aim is to fetch data inside npm package and display it on the dom.
But it gives me the following error when using on the react project
Uncaught(in promise)TypeError:Cannot read property 'dispose' of undefined
at Object../node_modules/react-dev-utils/webpackHotDevClient.js (webpackHotDevClient.js:45)....UncaughtError:Iframe has not been created yet.
at me (index.js:2087)
at Object.window.__REACT_ERROR_OVERLAY_GLOBAL_HOOK__.iframeReady (index.js:2097)......