2,526,541 questions
-3
votes
0
answers
28
views
Share image from base64/blob without filesystem in Capacitor 6
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 ...
-8
votes
1
answer
51
views
Unexpected end of JSON input / Unexpected token '<' when using response.json() with fetch
I am calling an API using fetch() in a React application. The request succeeds, and response.ok is true, but when I try to parse the response using response.json(), I get this error:
Uncaught (in ...
-1
votes
0
answers
23
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'm not ...
-1
votes
1
answer
54
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 ...
0
votes
1
answer
13
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
1
answer
30
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
39
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
24
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
63
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 ...
0
votes
0
answers
66
views
Firefox WebExtension new-tab <video> briefly flashes black between poster and first frame, even though source video has no black frame
I am building a Firefox “New Tab” WebExtension that shows a full-screen looping video wallpaper (cat + fireplace). For perf reasons I try to show a static preview instantly and then fade into the live ...
2
votes
1
answer
67
views
List<IFormFile> is null for large files
I have a C# Controller method that happily receives small files but when I try to upload a large file from the browser client, the "files" parameter is null.
I have searched the web and ...
1
vote
2
answers
93
views
websocket.close() being called but not closing, not sending close frame
I have an HTML / JavaScript chat web app using WebSockets. I have also built a simple Ubuntu Linux / Apache2 / PHP socket server geared for WebSockets, using vanilla PHP without third-party libraries. ...
Best practices
0
votes
1
replies
33
views
Best approach to dockerize Nodejs Backend with API endpoint and scheduler
The API endpoint is using the Express.js package while the scheduler is using the bree.js.
The previous approach is to wrap the scheduler starting program into a function and start the scheduler when ...
Advice
0
votes
2
replies
109
views
Writing a typing game, with an animated keyboard
I'm a new web developer here. I was hoping to share some code and see if there's a set of functions to use that maps more appropriately to my problem.
My goal is to create a typing game with css ...
-1
votes
0
answers
51
views
html5 canvas referencing images are not showing up [closed]
I'm recreating a game based on the FreeSki Windows 95 app. I know my way around JavaScript but i'm stuck on something I thought would be simple. Based on the console.log. I'm referencing the image(s) ...