a tool that allows for easy overriding of create-react-app webpack configs without having to eject
Questions tagged [react-app-rewired]
88 questions
0
votes
1 answer
node_modules vanishes and doesn't install any dependency for react app and throws error
I am trying to install a react app but am unable and it always gives the below error and the whole node_modules folder vanishes.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found:…
user16570636
0
votes
0 answers
EDITED Trying to deploy a react-app on gh-pages and new pages links are giving a 404 error. No error messages. Deploys locally fine
[UPDATED AFTER RECOMMENDATION TO USE GH-PAGES]
I am running into issues depoloy a react-app to gh-pages with pathing/pages rendering. I'm using react-router-dom to create actual links to pages so that I can share the direct link to a specific page.…

Colleen M
- 23
- 4
0
votes
0 answers
monaco-editor-webpack-plugin loads all features
I'm using react-app-rewired in my React app, I added the plugin for Monaco Editor, and I'm trying to reduce the amount of features.
I tried multiple steps, but nothing worked.
This is the configuration I added for testing:
new MonacoWebpackPlugin({
…
0
votes
0 answers
Module parse failed: Unexpected token (257:106)
it post this issue(Module parse failed: Unexpected token (257:106)) when i run this project and i expect this project can run success

joker
- 1
0
votes
1 answer
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js in ReactJS
I have been through all the similar questions on stackoverflow and also viewed several other source, yet I can't solve this issue for some reason.
On my React JS app I get the error messages as shown in the screenshot below. I am using…

Emo Flore
- 21
- 4
0
votes
1 answer
Webpack alias using descriptive filenames does not work in React-app-rewired
I have set up webpack aliases with react-app-rewired (using addWebpackAlias from customize-cra) but it only appears to work if the filename has the format filename.tsx or filename.ts.
We use the typical naming convention:
components eg:…

Ralph W
- 145
- 6
0
votes
0 answers
npm start is failed, but node_modules/.bin/react-app-rewired start is successful
package.json:
"scripts": {
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test"
}
I run 'npm start', then:
'react-app-rewired' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
npm ERR! code…
0
votes
0 answers
How to obtain Cypress code coverage report if tests are launched vs production build compiled in tomcat (Java)?
I'm currently working in obtain the code coverage report from my Cypress tests, to do so I use nyc istambul to instrument the code and code-coverage plugin to obtain the report.
Take in account that our program works with react-app-rewired and has a…

André
- 1
- 1
0
votes
0 answers
How to change class name generation without eject (using react-app-rewrite, update localIdentName)
Using CRA (create-react-app) it is possible to use css-modules (index.module.css). They generate the standard name ...[name]__[hash]. It is necessary without using npm run eject to change the name template with react-app-rewired. Example:…

photon
- 5
- 3
0
votes
1 answer
Removing Hash From React Css Modules
I can't seem to remove the custom hash on my class names generated by CSS Modules. I'm trying to adjust according to this thread, this medium, this stack overflow, and the web-pack documentation on css-loader but to no success.
I'm using…

Richard Tyler Miles
- 470
- 3
- 19
0
votes
1 answer
React shared project throws "Invalid hook call" for Outlet implementation
I have recently extracted some base react code from one of my projects into a separated shared project:
react-project package.json:
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.3.0",
"react-scripts":…

his dudeness
- 316
- 3
- 14
0
votes
1 answer
NODE_ENV=production with react-app-rewired
I have installed react-app-rewired as dev dependency according to docs.
"devDependencies": {
//...
"react-app-rewired": "^2.1.8",
},
Now I'd like to make a production build. When I use
NODE_ENV=production yarn install
consequent yarn…

Nick Roz
- 3,918
- 2
- 36
- 57
0
votes
0 answers
React react-app-rewired failing to import scss files
So I have been given a project to work on that hasn't been touched for the last two years that it's using this react-app-rewired package. When I tried to install using yarn, I was having some errors regarding my node and python versions being…

SergioNeves
- 99
- 3
- 14
0
votes
1 answer
React and LESS, use a dynamic value from process.env for variables
I have an app with React with LESS.
I have a "mixins" LESS file like this:
@STATICS: "https://should-be-set-on-env";
@STATICS_KEY: "key-should-be-set-on-env";
.completePath(@property, @path) when (@property = 'background-image'){
…

pmiranda
- 7,602
- 14
- 72
- 155
0
votes
0 answers
ValidationError: Invalid options object. PostCSS Loader has been initialized using an options object that does not match the API schema
I used "react-app-rewired" to configure "less", but there was an error after the new less file was created, and the less file did not take effect. The following is my package.json file and error message

刘文静
- 11
- 2