Comments (12)
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.
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.
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.
I have the same issue.
I would be appreciate it if appears another solution than downgrading axios version
from axios-extensions.
I also have the same issue
from axios-extensions.
We’re all waiting for that problem to go away.
from axios-extensions.
Same issue here :(
from axios-extensions.
@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.
@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.
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.
about ./lib/
,perhaps can refer to axios/axios#5072 and axios/axios#5136, the result is axios/axios#5136 (comment).
from axios-extensions.
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)
- Migrate LRUCache to v9.x.x
- axios 1.x has changed axios.defaults.adapter HOT 7
- Source maps reference .ts files
- axios 1.5.0 not compatible HOT 1
- axios-extensions doesn't work with gatsby/webpack due to dependency issue HOT 3
- version 3.1.3 is not es5 compatible because of lru-cache 5.1.1 HOT 3
- Ability to check if response is served from cache
- Invalidate All Cache HOT 3
- Is it possible to save cache in localstorage? HOT 1
- maxAge or throttleAdapterEnhancer HOT 1
- Is it possible to get the network request time that is cached?
- Doesn't work in Vite HOT 1
- ReferenceError: process is not defined HOT 1
- Is it possible to check if request is cached using axios response HOT 1
- Upgrade to LRUCache v7
- Missing source files for sourcemaps? HOT 3
- Warning from deprecated / renamed method in LRUCache HOT 7
- Axios cache just stopped working with today's update - How to solve? HOT 2
- About throttleAdapterEnhancer HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from axios-extensions.