Coder Social home page Coder Social logo

[BUG] Installation fails - `/bin/sh -c yarn build did not complete successfully` - React Refresh Babel transform should only be enabled in development environment about osintbuddy HOT 6 CLOSED

jerlendds avatar jerlendds commented on June 21, 2024
[BUG] Installation fails - `/bin/sh -c yarn build did not complete successfully` - React Refresh Babel transform should only be enabled in development environment

from osintbuddy.

Comments (6)

Renizmy avatar Renizmy commented on June 21, 2024 1

It works, thank you

from osintbuddy.

seregareal2 avatar seregareal2 commented on June 21, 2024 1

Спасибо, что сообщили@Renizmy!

@seregareal2Вы пробовали предложенное исправление?

renaming ENVIRONMENT to production in the .env file did not help at first, renaming ENVIRONMENT to production in the .env.example file helped, now it works

from osintbuddy.

jerlendds avatar jerlendds commented on June 21, 2024

Hi, thanks for reporting this, this is a known issue and I have a fix coming out for it this the upcoming weekend alongside authentication and an entity editor feature addition. Try changing your .env ENVIRONMENT to production in the meantime

from osintbuddy.

seregareal2 avatar seregareal2 commented on June 21, 2024

=> ERROR [ui build-stage 6/6] RUN yarn build 9.4s

[ui build-stage 6/6] RUN yarn build:
1.158 yarn run v1.22.19
1.178 $ craco build
2.418 Creating an optimized production build...
9.308 Failed to compile.
9.308
9.309 Error: [BABEL] /app/src/index.tsx: React Refresh Babel transform should only be enabled in development environment. Instead, the environment is: "production". If you want to override this check, pass {skipEnvCheck: true} as plugin options. (While processing: "/app/node_modules/react-refresh/babel.js")
9.309 at Generator.next ()
9.309 at Generator.next ()
9.309 at Generator.next ()
9.309 at Generator.next ()
9.309 at cachedFunction.next ()
9.309 at loadPluginDescriptor.next ()
9.309 at loadPluginDescriptors.next ()
9.309 at Generator.next ()
9.309 at loadFullConfig.next ()
9.309 at transform.next ()
9.309
9.309
9.332 error Command failed with exit code 1.
9.333 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.


failed to solve: process "/bin/sh -c yarn build" did not complete successfully: exit code: 1

from osintbuddy.

jerlendds avatar jerlendds commented on June 21, 2024

Thanks for reporting back @Renizmy !

@seregareal2 Did you try the suggested fix?

from osintbuddy.

jerlendds avatar jerlendds commented on June 21, 2024

Ok, thanks for reporting back @seregareal2

from osintbuddy.

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.