516 questions
0
votes
1
answer
27
views
Custom React Builds
I have the following basic react structure
Project
|
--- src
|
--- App
|
--- file-tree-1
|
--- file-tree-2
If I run npm run start and npm ...
1
vote
3
answers
2k
views
Trying to do a React tutorial and getting ERESOLVE "unable to resolve dependency tree"
I'm trying to learn React and npm. I'm starting the tutorial here: https://react.dev/learn/tutorial-tic-tac-toe . It also gives the setup to follow if setting up on your own laptop.
package.json :
{
...
1
vote
2
answers
91
views
How to configure webpack to exclude certain modules from a library?
I have a React app that imports a library (in the node_modules directory, of course).
The name of the library is @lib/schema.
In the react app, modules of this library are imported like so:
import { ...
0
votes
1
answer
38
views
Reactjs Chrome extension: how to open react component in new tab, react scripts
I'm trying to create a simple Chrome extension: when it's clicked, a small popup is opened that has an Expand button (Popup.js). When an Expand button is clicked, a new tab is opened (Window.js).
...
0
votes
1
answer
114
views
Getting "Attempted import error: '__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE' " in react app
I am receiving the following error when trying to run my React app:
react-scripts build
Creating an optimized production build...
Failed to compile.
Attempted import error: '...
0
votes
1
answer
70
views
Getting react build failed to compile
I am getting following error while react-scripts build:
> react-scripts build
Creating an optimized production build...
Failed to compile.
Attempted import error: '...
0
votes
1
answer
58
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
0
answers
90
views
why cant i install dependencies on my ReactNative Web?
I'm feeling hopeless now. I'm trying to build a web app using React Native web for my capstone project and I'm having lots of errors installing dependencies. I always get this error on react-scripts, ...
2
votes
0
answers
47
views
Module parse failed: Unexpected token in react-idle-timer with React Scripts
I’m encountering an error when trying to compile my React project that uses the react-idle-timer package. The error points to an unexpected token in index.esm.js of react-idle-timer, specifically on ...
0
votes
0
answers
113
views
node:internal/modules/cjs/loader:453 throw err;
When I run
npm start
in the frontend server, in VSCode editor I get the following error:-
node:internal/modules/cjs/loader:453
throw err;
^
Error: Cannot find module 'C:\Users\UserA\...
0
votes
1
answer
28
views
How to Programmatically Kill Jest and All Its Child Processes After a Timeout?
I’m facing an issue with Jest where I’m trying to enforce a timeout on its execution and kill it along with all its spawned child processes if it exceeds this timeout.
When the javascript heap space ...
1
vote
0
answers
63
views
How to Configure CSP in Next.js to Allow Only Specific Scripts and Block All Others?
I am working on a Next.js (Pages Router) application and need to configure Content Security Policy (CSP) to allow only specific scripts and blocking all others. The challenge is that my application ...
0
votes
0
answers
35
views
React Build Failing on Vercel: Module Not Found 'react-dom/client'
I'm having an issue with deploying my React application on Vercel. The build process keeps failing with the following error:
Module not found: Error: Can't resolve 'react-dom/client' in '/vercel/path0/...
0
votes
1
answer
596
views
How can I get a compatible React package ecosystem having both react-scripts@x and typescript@^5?
I intend to install >= [email protected] but - as Vercel deployed - having currently [email protected], which is incompatible with typescript@5.
npm ERR! node_modules/typescript
npm ERR! ...
1
vote
0
answers
73
views
npm audit show me report "postcss and nth-check will be update to ver 8.4.31 or latest (postcss) and to ver 2.0.1 or latest(nth-check)"
npm audit show me report "postcss and nth-check will be update to ver 8.4.31 or latest (postcss) and to ver 2.0.1 or latest(nth-check)"
latest versions on 4/18/2024: "8.4.38" and &...