dilanx / craco

Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.
https://craco.js.org
Apache License 2.0
7.43k stars 499 forks source link

Unable to Setup React For PROD #461

Closed jared-leddy closed 10 months ago

jared-leddy commented 1 year ago

Trying to use the React Dev Tools browser extension, but we're having problems starting up the dev server with the production build. Which prevents us from being able to use the browser extension.

We've tried lots of different solutions, but a simple example is below.

// craco.config.cjs
webpack: {
  configure: {
      resolve: {
        alias: {
          'react-dom$': 'react-dom/profiling'
        }
     }
  }
}
jared-leddy commented 10 months ago

We've abandoned CRACO. Closing this.