Code Monkey home page Code Monkey logo

Comments (7)

vegawong avatar vegawong commented on September 2, 2024

hey guys! Has anything made?

from customize-cra.

with-heart avatar with-heart commented on September 2, 2024

This issue is difficult to handle because we have no way of knowing the paths location for every custom react-scripts implementation, and there's no way to automatically detect the name of the custom module either. However, since react-app-rewired supports custom scripts versions, I think we should too.

See #103

from customize-cra.

vegawong avatar vegawong commented on September 2, 2024

@with-heart Thank you for your reply! I remember react-app-rewired as if we were using .env file to record custom scripts versions, and I thought we could follow suit and use it better with react-app-rewired.

from customize-cra.

with-heart avatar with-heart commented on September 2, 2024

That's certainly something you could store in .env and read in config-overrides.js to modify how you override configs, but as far as I'm aware, it's never been something done automatically in react-app-rewired.

As part of #103, I will add a way to inject custom paths to support what you'd like to do here. I'm going to close this issue, so follow along there for updates :)

from customize-cra.

with-heart avatar with-heart commented on September 2, 2024

@vegawong You were correct, that should be supported through the REACT_SCRIPTS_VERSION var or the --scripts-version command line option (documented here). That'll be factored into #103.

from customize-cra.

siddharth-golchha avatar siddharth-golchha commented on September 2, 2024

@vegawong Is there a workaround for this use case? I am facing this same issue where I am using custom react-scripts version and getting the same issue.

from customize-cra.

vegawong avatar vegawong commented on September 2, 2024

@vegawong Is there a workaround for this use case? I am facing this same issue where I am using custom react-scripts version and getting the same issue.

haha! I just simply copy the problematic api code into a separate js file to modify and replace the api that is imported directly using from the package.

from customize-cra.

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.