Code Monkey home page Code Monkey logo

Comments (12)

kuitos avatar kuitos commented on July 28, 2024 6

Axios 1.x has a little breaking changes in its package.json, you could downgrade axios to 0.x as a workaround, I will look into it later and try to solve it really.

from axios-extensions.

ZhangHanwen96 avatar ZhangHanwen96 commented on July 28, 2024 3

add this resolve: { alias: { // Fix: Missing "./lib/helpers/buildURL" specifier in "axios" package 'axios/lib': path.resolve(__dirname, './node_modules/axios/lib') } } in vite config

from axios-extensions.

boozedog avatar boozedog commented on July 28, 2024

I'm getting same from npm:

ERROR in ./node_modules/axios-extensions/esm/utils/buildSortedURL.js 7:0-50
Module not found: Error: Package path ./lib/helpers/buildURL is not exported from package 

from axios-extensions.

AniaKru95 avatar AniaKru95 commented on July 28, 2024

I have the same issue.
I would be appreciate it if appears another solution than downgrading axios version

from axios-extensions.

jhvissotto avatar jhvissotto commented on July 28, 2024

I also have the same issue

from axios-extensions.

DmytroVoitovych avatar DmytroVoitovych commented on July 28, 2024

We’re all waiting for that problem to go away.

from axios-extensions.

berkeleymalagon avatar berkeleymalagon commented on July 28, 2024

Same issue here :(

from axios-extensions.

aoxiang78 avatar aoxiang78 commented on July 28, 2024

@AniaKru95
It should be the reason for axios the new version of the configuration. Now I temporarily use the alias method, which is feasible.
config.resolve.alias.set('axios', join(__dirname, '../node_modules/axios'));

from axios-extensions.

iKnowMagic avatar iKnowMagic commented on July 28, 2024

@AniaKru95 It should be the reason for axios the new version of the configuration. Now I temporarily use the alias method, which is feasible. config.resolve.alias.set('axios', join(__dirname, '../node_modules/axios'));

I am having the same problem. How would I use the alias method with vue / vite? Thanks.

from axios-extensions.

boozedog avatar boozedog commented on July 28, 2024

Axios 1.x has a little breaking changes in its package.json, you could downgrade axios to 0.x as a workaround, I will look into it later and try to solve it really.

@kuitos any luck? Just tried 1.x.x today and still broken

from axios-extensions.

mengqiuleo avatar mengqiuleo commented on July 28, 2024

about ./lib/,perhaps can refer to axios/axios#5072 and axios/axios#5136, the result is axios/axios#5136 (comment).

from axios-extensions.

crhistianramirez avatar crhistianramirez commented on July 28, 2024

add this resolve: { alias: { // Fix: Missing "./lib/helpers/buildURL" specifier in "axios" package 'axios/lib': path.resolve(__dirname, './node_modules/axios/lib') } } in vite config

Nice, thanks! I was able to use a similar config in next.js by updating next.config.jx

webpack: (config) => {
    config.resolve.alias = {
        ...config.resolve.alias,
            // Fix: Missing "./lib/helpers" specifier in "axios" package 
            'axios/lib': path.resolve(__dirname, './node_modules/axios/lib'),
    }

    return config;
}

from axios-extensions.

Related Issues (20)

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.