Coder Social home page Coder Social logo

Comments (7)

mdlavin avatar mdlavin commented on June 8, 2024

I notice that you are pointing at a fork of this project. Do you see the same problem when using the publish version of the project?

from axios-fetch.

baleeds avatar baleeds commented on June 8, 2024

Yes it does, although it's pointing to index.js:1 as the problem now. I have temporarily changed my package to "@lifeomic/axios-fetch": "^1.4.0",.

from axios-fetch.

mdlavin avatar mdlavin commented on June 8, 2024

We minify projects that use axios-fetch often at LifeOmic without trouble so I'm guessing that some unique config is causing trouble for you. One gotcha I've seen is that not all minifiers support the latest Javascript syntax. Can you share some details about your minification process and configuration?

from axios-fetch.

baleeds avatar baleeds commented on June 8, 2024

Well, we are using create-react-app, so most of that is abstracted away. It uses babel to transpile es6 and then webpack to create the minified bundle.
Our babelrc is:

{
  "presets": [
    "react-app"
  ]
}

But it does seem like it's a configuration issue, especially a babel issue, since it probably shouldn't be trying to minify any es6 code to begin with.

from axios-fetch.

baleeds avatar baleeds commented on June 8, 2024

Hmm, I think I may have fixed it. I did two things.

  1. Updated my react dependencies to the latest versions.
  2. Deleted my yarn.lock, package.lock, and node_modules. Then ran yarn from scratch.

from axios-fetch.

mdlavin avatar mdlavin commented on June 8, 2024

That's great news! Do you mind if I close this issue?

from axios-fetch.

baleeds avatar baleeds commented on June 8, 2024

Go for it!

from axios-fetch.

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.