GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Runtime error in resolveConfig.js when bundled with Webpack + Babel · Issue #10675 · axios/axios

Runtime error in resolveConfig.js when bundled with Webpack + Babel #10675

New issue
Copy link
New issue
Copy link
Closed
Closed
Runtime error in resolveConfig.js when bundled with Webpack + Babel#10675
Copy link

Description

@zhengxs2018
zhengxs2018
opened on Apr 9, 2026
Issue body actions

Hi there,

We’re encountering a runtime error after bundling our project with Webpack and Babel. It seems that a recent plugin update is injecting extra code into the syntax combining arrow functions and default exports, which breaks the compiled output.

Source Code:

Image

Compiled Output (Bundled):

Image

Any module using an arrow function as a default export triggers this issue. We are still investigating exactly which plugin is causing the injection, but the symptom is consistent.

Image

We noticed that resolveConfig.js was introduced in Axios v1.7.0. Because of this bug, we’ve had to pin our Axios version to 1.6.x as a temporary workaround.

It would be great if resolveConfig.js could be refactored or handled in a way that avoids this compatibility issue with common bundler/transpiler setups.

Thanks!

Activity

  1. wxller commented on Apr 9, 2026

    @wxller
    wxller
    on Apr 9, 2026
    More actions

    安装[email protected]的版本也还是会报错无法运行:
    Uncaught ReferenceError: WEBPACK_DEFAULT_EXPORT is not defined
    at eval (parseHeaders.js:49:34)
    at ./node_modules/axios/lib/helpers/parseHeaders.js (chunk-vendors.js:48470:1)
    at webpack_require (runtime.js:40:32)
    at fn (runtime.js:337:21)
    at eval (AxiosHeaders.js:3:82)
    at ./node_modules/axios/lib/core/AxiosHeaders.js (chunk-vendors.js:48239:1)
    at webpack_require (runtime.js:40:32)
    at fn (runtime.js:337:21)
    at eval (transformData.js:7:79)
    at ./node_modules/axios/lib/core/transformData.js (chunk-vendors.js:48305:1)

    哪个版本可以用??

  2. zhengxs2018 commented on Apr 9, 2026

    @zhengxs2018
    zhengxs2018
    on Apr 9, 2026
    Author
    More actions

    @wxller

    webpack 引起的,我现在已经固定 webpack "5.94.0" 了。

    webpack/webpack#20793

  3. jameswhitaker816-design commented on Apr 9, 2026

    @jameswhitaker816-design
    jameswhitaker816-design
    on Apr 9, 2026 via email
    More actions
    Yeah this looks like a Webpack issue, not Axios itself. Locking Webpack to 5.94.0 fixed it for me too. You might also want to double-check any Babel plugins that touch exports/arrow functions—one of those could be making it worse
    …
    On Thu, Apr 9, 2026, 5:05 AM zhengxs2018 ***@***.***> wrote: *zhengxs2018* left a comment (axios/axios#10675) <#10675 (comment)> @wxller <https://github.com/wxller> webpack 引起的,我现在已经固定 webpack "5.94.0" 了。 webpack/webpack#20793 <webpack/webpack#20793> — Reply to this email directly, view it on GitHub <#10675 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/B7FYT7M337CCVEYWELYYEMD4U5YWJAVCNFSM6AAAAACXSDYRWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DEMJTGI4TSOJUGE> . You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
  4. jasonsaayman
    closed this as completedon Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.