zourtney / webpack-fix-default-import-axios

Demonstration of broken behavior with Axios library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

A minimal example demonstrating improper loading of the Axios library when using the the webpack-fix-default-import-plugin plugin.

import axios from 'axios';
axios.get('/anything');

Results in an error:

app.bundle.js:836 Uncaught RangeError: Maximum call stack size exceeded
    at assignValue (app.bundle.js:836)
    at forEach (app.bundle.js:811)
    at merge (app.bundle.js:845)
    at assignValue (app.bundle.js:838)
    at forEach (app.bundle.js:811)
    at merge (app.bundle.js:845)
    at assignValue (app.bundle.js:838)
    at forEach (app.bundle.js:811)
    at merge (app.bundle.js:845)
    at assignValue (app.bundle.js:838)

Testing

Clone the repo, then:

npm install

Start the demo with:

npm start

About

Demonstration of broken behavior with Axios library


Languages

Language:JavaScript 75.8%Language:TypeScript 12.4%Language:HTML 11.8%