2,526,542 questions
-1
votes
0
answers
22
views
How do I accurately determine my mouse position relative to an html element in react?
I have an app that contains a canvas I am drawing to, and I'd like to be able to track the mouse position accurately. The issue I face is that the farther you go towards the bottom right, the less ...
-1
votes
0
answers
15
views
Trying to get these slide indicator dots to stay on the right
I am working on a portfolio project and im trying to get these slide indicator dots to stay on the right of the screen and in the middle of the slide. Ive currently got it on fixed, which i dont want ...
0
votes
1
answer
36
views
Schema validation failed with the following errors in Angular project
I have two similar Angular projects (both on Angular 20) and currently one of the projects when I run the npm run start command I am constantly getting the error below. Should I remove the package-...
1
vote
1
answer
22
views
React Native: Return value from Child Component to Parent while Child is receiving data from Parent
I was initially following this StackOverflow answer to obtain data from Child component but given how I had set the component up (based on another StackOverflow answer that I have since lost) i am not ...
-4
votes
0
answers
47
views
Javascript's regular expression what in stored variable does not work as expected [duplicate]
Regular expressions stored in variables
const pattern = /^(bg|portrait|poster)(|\_(\d+))\.(webp|webm|jpg|jpeg|png|bmp|mp4)$/gi;
let m1 = pattern.exec("poster_1.jpg");
console.log(m1);
let ...
0
votes
0
answers
20
views
TipTap Shows Horizontal Line Cursor When Drag-and-Dropping on a New Line
When I drop content into the TipTap editor on a new line that doesn’t already exist, I see a horizontal line cursor. Why does this happen, and how can I fix it?
here is my tiptap extension ...
0
votes
0
answers
24
views
How do I configure internationalization (i18n) properly in a web application(react)?
I’m building a web application that needs to support multiple languages, and I want to set up internationalization (i18n) in a clean and maintainable way.
Specifically, I’m looking for guidance on:
...
-3
votes
0
answers
35
views
Share image from base64/blob without filesystem in Capacitor 6 [closed]
I'm using Capacitor 6.0.3 and @capacitor/share 6.0.3.
I need to share an image that is generated in WebView (screenshot), available as base64 / Blob / data URL.
According to the docs, ShareOptions ...
-11
votes
1
answer
78
views
Unexpected end of JSON input / Unexpected token '<' when using response.json() with fetch [closed]
Clarification: I am not parsing HTML inside my own API. I am calling Swiggy’s public-looking API directly from a React frontend for learning and practice purposes only. The issue is that this endpoint ...
0
votes
1
answer
66
views
Rendering data in a React component
I have formatted the object accordingly and my to-do items are showing. When deleting a item the issue persists that the item only goes away from the UI when manually reloading the page. How can this ...
1
vote
1
answer
19
views
React Native: Animate stacked views separately (tinder swipe mimic)
I currently have a loop that generates some Animated.Views on top of one another (like in a ZStack). With my code as is, all the views move together on a single swipe rather than one by one on ...
0
votes
2
answers
46
views
TypeScript says module not found for @polymarket/clob-client even though it is installed and in node modules
I have installed @polymarket/clob-client and it is in my node_modules but typescript still says the module is not found when i try to use it
This is index.ts
`
import {ethers} from "ethers";
...
0
votes
1
answer
42
views
Reduce logical pattern repetition for minDate and maxDate from Bootstrap DateTimePicker
The following logical pattern repeats several times:
$("#dt_start").on("dp.change", function (e) {
$('#dt_end').data("DateTimePicker").minDate(e.date);
});
$("#...
0
votes
0
answers
35
views
Ajax queries failing and then succeding on retry with prefilter
I have a jquery based functionality that prefilters all ajax queries so it can intercept 401 requests and refresh api authorization. I used to use a function that simply checks for a 401, refreshes ...
2
votes
1
answer
70
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 ...