Questions tagged [react-app-rewired]

a tool that allows for easy overriding of create-react-app webpack configs without having to eject

88 questions
0
votes
1 answer

react-app-rewired requiring giving mini-css-extract-plugin

I am currently using react-app-rewired with customize-cra. Currently right now, npm start works but npm run build gives the following error. Error: You forgot to add 'mini-css-extract-plugin' plugin Not exactly sure whats happening, here is my…
0
votes
0 answers

React Dev Server is too slow, many memory usage, re-compile too slow ( with react-app-rewired)

My react development server is too slow, and have many problem. Please see my configuration. package.json { "version": "1.0.2", "private": true, "dependencies": { "@date-io/dayjs": "^1.3.13", "@date-io/moment": "^1.3.13", …
jh.jeong
  • 1
  • 1
0
votes
2 answers

How do I generate static HTML for my homepage from Create React App?

I have a CRA and want to have the first page generated statically to improve load time and SEO. The idea is to run a NodeJS script that renders the App document inside index.html. Here is my code: const { renderToString } =…
0
votes
1 answer

Webpack build error. Invalid configuration object. Invalid target param

Have this code in config-overrides.js const rewireReactHotLoader = require('react-app-rewire-hot-loader') module.exports = function override(config, env) { config = rewireReactHotLoader(config, env) config.target = 'es2020' …
0
votes
2 answers

customize-cra - Support for the experimental syntax 'jsx' isn't currently enabled

I am using react-app-rewired to configure my CRA project as I was having issues with 2 co-existing versions of React which I'm sure is a very common use-case for react-app-rewired/customize-cra. Everything has been fine until I required installing…
0
votes
1 answer

How do you set the namespace for styled components when using create-react-app?

I'm creating a react app with create-react-app. I want to avoid having to eject the webpack config, but I want more control over how my classes are generated. I'm currently using react-app-rewired and react-app-rewire-styled-components to try and…
timo
  • 2,119
  • 1
  • 24
  • 40
0
votes
1 answer

I am getting error, while implementing react-native-paper on react-native-web

This link I used to implement for paper-provider https://callstack.github.io/react-native-paper/using-on-the-web.html. After copied PaperProvider I am getting these error.. ERROR in ./src/index.tsx Module…
0
votes
1 answer

error serving react app using react-app-wired

I have a react application created with create-react-app using react-data-grid@7. Since canary17 they started to use es2020 modules, to using the more recent builds I have to add support to optional-chaining and nullish-coalescing-operator to the…
Luca Morelli
  • 2,530
  • 3
  • 28
  • 45
0
votes
1 answer

Ignore specific urls from serving index.html file in React App

I'd like to ask that how can I config to ignore some specific urls from serving index.html file in React App. I know that there was a rule that fallback to index.html if the url is not found (Similar -s option in serve command). But I want to ignore…
Quoc Van Tang
  • 1,075
  • 4
  • 15
  • 33
0
votes
1 answer

React production using react-app-rewired-alias

I need to import mp3 files from outside of electron app. But react does not accept import outside of src. That's why i use react-app-rewired and react-app-rewired-alias. When electron start first time, I create downloads directory under appData…
Çağatay Sert
  • 413
  • 2
  • 5
  • 16
0
votes
0 answers

Is it possible to remove a file from a node package during react-app-rewired build process?

I have a react application that users react-app-rewired build command. The application needs a file from one of the node package removed. Is there something I can put in the config-overrides.js that will facilitate this?
user2517182
  • 1,241
  • 3
  • 15
  • 37
0
votes
1 answer

How to configure Create-react-app less module with customize-cra(2.x)?

I used create-react-app(typescripts) to build a project, and added antd@3.26.13 with customize-cra as the website I was following told me. I would like use the module.css, and I want to use module.less, like css, but encountered some error…
0
votes
2 answers

Port 3000 always taken (even if I override it with PORT=XYZ)

I have a WEB app written in React and whenever I try to run it with react-app-rewired start it complains that Something is already running on port XYZ. I've checked if any process is listening on port XYZ with netstat -a -b, but there was none.…
Tadej
  • 379
  • 4
  • 12
1 2 3 4 5
6