193 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
316
views
How to inject scss into shadow dom
I am working on a personal ReactJS project and have created two projects using Module Federation.
In the main project, I added some CSS which is affecting the remote project. After Googling, I found ...
0
votes
0
answers
37
views
browserify-zlib falls outside of the project src/ directory
How do I get rid of this error?
Module not found: Error: You attempted to import /home/sebastian/dev/frontend/node_modules/browserify-zlib/lib/index.js which falls outside of the project src/ ...
0
votes
0
answers
58
views
Webpack (Craco) code splitting on build (environment-based splitting)
We have a React Craco app which we serve to different markets/countries. This means the majority of the code is used by all markets, but also every market has its own code (components, functions, etc.)...
0
votes
1
answer
367
views
How to configure CRACO config file?
I want to configure the middleware of my craco.config.js, but I don't know have, so I want tips. My actual file is:
const {CracoAliasPlugin} = require('react-app-alias')
module.exports = {
plugins: ...
1
vote
0
answers
55
views
Hot reload doesnt work when i use Module federation using Craco
const path = require('path')
const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin')
const { getLoader, loaderByName } = require('@craco/craco')
const packages = []
...
1
vote
0
answers
2k
views
TypeError: Cannot read properties of undefined (reading 'getStackAddendum') in React production build
I'm encountering a TypeError when building my React application for production. The error message is:
TypeError: Cannot read properties of undefined (reading 'getStackAddendum') at printWarning ...
...
0
votes
1
answer
71
views
React-scripts token error on yarn start in 5 year old project — works on other machines
I’m encountering an issue with a 5 yeas old React project where react-scripts is unable to identify tokens, leading to an error. The project runs perfectly fine on the production server and other ...
0
votes
1
answer
171
views
CRACO app issue when using 'babel-plugin-import': "Can't resolve '@mui/material/ThemeProvider' in 'app/src/Component'"
I'm trying to minimize my bundle size, specifically the "@mui/material" package. I'm using the guide they have: https://mui.com/material-ui/guides/minimizing-bundle-size/.
However, after ...
0
votes
0
answers
232
views
Setting up Webpack Module Federation
For setting up Webpack Module Federation say for a React project, do we have any option apart from
Ejecting the React App and overriding the Webpack configs (e.g. overrideWebpackConfig) OR
Using ...
0
votes
1
answer
585
views
React cannot find module, '@babel/plugin-proposal-private-property-in-object' (0:undefined) on Jenkins
Jenkins Error noted on the console.log terminal
13:29:56 Syntax error: [BABEL] /var/jenkins_home/workspace/govt-finance/qa/build-and-deploy-web/node-app/src/index.js: Cannot find module '@babel/...
0
votes
1
answer
258
views
I Can See Source Code on Browser Even After I Uglify the Project
My problem is, I can see my source code in browser even after I use Terser Plugin with Webpack. The problem is, I use Terser Plugin for transforming my code into non human readable code chunks. After ...
0
votes
0
answers
147
views
Blur event doesn't occur well when I install million.js
My project is made with CRA(Create React App).
I just watched a React lecture, and I installed million.js.
https://million.dev/
But now, there's a serious problem with blur event handling.
blur event ...
-1
votes
1
answer
86
views
How can I load constant variable from src into craco.config.js?
I'm using typescript React for the web app and it is using craco.config.js.
I have color declaration in src/theme.ts and I want to import that constant from theme.ts into craco.config.js so I can use ...
1
vote
0
answers
59
views
CKEditor 5 Image Plugin Got Error on React
I am using craco in a React app. I want to integrate CKEditor 5 as the content editor. Without the plugin, my app has no issues. However, when I install and use the image plugin, I encounter an error ...
0
votes
1
answer
463
views
Dockerfile Build Issue in GitHub Actions: Module Not Found Error
I am encountering an issue while building a Docker image in a GitHub Actions workflow. The Dockerfile is configured to build a Node.js application and deploy it to Cloud Run. The build process fails ...