Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project still active? #18

Open
eric-nicular opened this issue Sep 28, 2022 · 4 comments
Open

Project still active? #18

eric-nicular opened this issue Sep 28, 2022 · 4 comments

Comments

@eric-nicular
Copy link

Is this repo still maintained/usable?

I tried using this with Quasar V2 to make my Axios calls compatible with service workers, but am having difficulty. All the rest of my frontend data is being saved, but not the Axios GET or POST requests. Any assistance would be much appreciated.

@KaKi87
Copy link

KaKi87 commented Oct 26, 2022

As the repo was updated only 28 hours after you submitted this issue, I would have said no, but considering there has been no response nor activity from the owner since then, it might be today.

Personally I'm studying the possibility of using this adapter (or finding another maintained fetch adapter) to use axios on Deno :

import axios from 'https://unpkg.com/axios@1.1.3/dist/esm/axios.min.js';
import axiosFetchAdapter from 'https://jspm.dev/@vespaiach/axios-fetch-adapter@0.3.1';
const client = axios.create({
    adapter: axiosFetchAdapter
});

@kuu12, @odroltd, @dmitriib-slash, if you're planning to maintain the project, would you please consider unifying your efforts and enabling issues ?

Thanks.

@crhistianramirez
Copy link

@KaKi87 were you able to find an alternative? This project seems dead and looking for one that is compatible with axios v1+

@KaKi87
Copy link

KaKi87 commented Aug 30, 2023

I did : https://github.com/haverstack/axios-fetch-adapter

It doesn't officially support v1.x though.

@crhistianramirez
Copy link

Thanks! I see that although I was actually able to get that package to work with v1.x. Looks like they are referencing some library helpers that are no longer exported in v1.x, more info here but you can modify your webpack config to pull from the node module files directly

Here's what it looks like in next.js

const path = require("path");

/** @type {import('next').NextConfig} */
const nextConfig = {
  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;
  },
};

module.exports = nextConfig;

Then it was just a matter of ignoring the peer dependency warnings with npm install --legacy-peer-deps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants