476,923 questions
-1
votes
0
answers
16
views
Why do I get an error with exports or imports when building a storybook?
All folders and files are available here: https://github.com/Altazavr/B-production.
When I try to build Storybook, I get the following error:
npm run storybook:build
Error:
ERR! => Failed to build ...
0
votes
0
answers
10
views
How to correctly use repulsive forces for rendering react three fiber nodes in 3-D?
I am building a network of nodes in 3d with edges connecting the nodes. I am correctly using manual xyz coordinates. I tried with copilot to auto adjust but it implemented a force-directed graph ...
0
votes
1
answer
11
views
Uncaught (in promise) ZodError
I am working on a input form for adding a food item but I ham having a error which I could not solve and need help. Below is code:
const schema = zod.object({
name: zod.string().min(2, &...
2
votes
1
answer
47
views
“Element type is invalid” error when component is inside src folder, but works when placed in node_modules
I installed the required packages: npm install react-slick slick-carousel
But I am getting this error when trying to use react-slick:
Element type is invalid: expected a string (for built-in ...
-1
votes
2
answers
35
views
CSS styling error with React: Container gets shifted with use of viewport width [closed]
So basically I have this problem with the viewport width not working as wanted in React. I just want to make a simple design with the page having a background and a timer across with a blurred ...
Best practices
1
vote
1
replies
47
views
I want to improve my program thats about a React Tasklist
We need to make a program for school, it works just fine I let gemini do some comments, they are in german tho, I could change it to english if I need to, I would like to know how I could improve it. ...
0
votes
0
answers
30
views
Cypress E2E test - override accountContext value
Background
React SPA with AWS Cognito for authentication. We have a page with restricted access; users must be a member of <groupA> in order to view /restricted_page.
At login, we have:
const { ...
-5
votes
0
answers
49
views
SPA with lazy routes: handle new release bundle without crashing [closed]
I have a React single-page application with lazy imports and lazy routes.
The problem is common: when I build a new bundle, release it, and then try to fetch a lazy-loaded component, the app crashes. ...
0
votes
0
answers
21
views
Ant Design X-axis label in vertical needed to be straight using of Column
This is my config file for Column of Ant Design
const config = {
data,
xField: 'ruleLabel',
yField: 'ruleCount',
xAxis: {
label: {
autoRotate: false
}
},
style: {
...
-1
votes
0
answers
23
views
PrimeReact <Chips> adds the chip after typing only ONE character in Microsoft Teams (SPFx React App)
I am using PrimeReact in an SPFx React application that runs inside Microsoft Teams.
The component behaves normally in a browser, but inside Teams it automatically adds a chip after typing just one ...
-3
votes
0
answers
38
views
BurpSuite reports “PHP source code disclosure” inside React build chunk file — but app has no PHP [closed]
I’m working on a React (Create-React-App) project that is deployed behind CloudFront + S3.
Our application is 100% frontend JavaScript — we do not use PHP anywhere in our codebase or backend.
However, ...
-2
votes
0
answers
40
views
Next.js yt iframe background video not autoplaying on IOS [closed]
I have used this <iframe> in the header to make the video work as a background autoplaying video. It works fine on desktop and Android, but it does not work on iOS. On iOS the video stops at the ...
2
votes
1
answer
34
views
Trying to change div colors based on incoming websocket data in React
I have this React App which uses a django API and everytime websocket data comes in, the displayed prices in my app are changed, my goal is that when they change they flash red/green for about 0.5 ...
-3
votes
0
answers
37
views
What should be surl and furl in my payu native cordova sdk [closed]
export default function PayUMoneyPayment({ data }) {
const handlePayuNativeCordovaMobilePay = async () => {
const key = "xyz";
const txnid = "txn_" + Math.random()....
-3
votes
0
answers
38
views
VS Code "Cannot find module" and empty pnpm list output despite successful install in a nested project [closed]
I recently reset my laptop and set up a fresh development environment on Windows. I installed Node.js (LTS) and pnpm. I cloned my repository, which has a nested folder structure.
Directory Structure:
...