513 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
42
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
3k
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
231
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
74
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
257
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
226
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
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 ...
2
votes
0
answers
65
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
1
answer
35
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
132
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
1
answer
1k
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
83
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 &...
0
votes
1
answer
46
views
In VS code my scripts don't have a start command i tried adding it manually but it won't run and the preview command does't show live reloads
"scripts": {
"dev": "vite",
"build": "vite build",
"lint": "eslint src --ext js,jsx --report-unused-disable-directives --...
1
vote
1
answer
177
views
is it secure to use SKIP_FLIGHT_CHECK=true and openssl-legacy-provider in react script npm start?
I am working on a react app which has old versions of most of the libraries being used in package.json file.
for e.g
"react": "^16.3.1",
"react-scripts": "^3.0.1&...
0
votes
1
answer
637
views
Loading third party script within functional component in React site
I spent way too many hours on this problem, which seems to be something trivial, and I can not understand where is my mistake.
I bought terms and conditions from Termly.com and I want to display those ...