2,526,003 questions
0
votes
1
answer
30
views
Uncaught TypeError: Failed to resolve module specifier "firebase/database" in client-side Firebase setup
I’m trying to configure Firebase Realtime Database on the client side using the following code:
import { initializeApp } from "firebase/app";
import { getDatabase } from "firebase/...
-1
votes
0
answers
47
views
Can you force a React state update?
I have a React project and in short I have a selector that selects projects. When a project is selected it should be set as selected and should start loading it's Revit version in the background (...
0
votes
0
answers
28
views
Interceptor failing to ingest localStorage variable and pass it to service
Problem
I have a token object stored in localStorage:
{
accessToken: string
idToken: string
refreshToken: string
}
When I resfresh the page I have the following interceptor built:
import {...
0
votes
0
answers
29
views
How to mock setTimeOut in a Jest unit test?
In my application I need to ensure that an array of Promises will be executed in the order as given in the array. Addtionally, the application shall "wait" a certain time after each Promise ...
0
votes
0
answers
125
views
Is it possible to use an HTML canvas as a CSS mask? [closed]
I am working on a website, and I want to make the headings have an underline with an animated fog mask so random parts gradually fade in and out. Below is a mock-up of what I want to achieve:
I was ...
0
votes
0
answers
37
views
Can't send the refresh cookie from my ReactJS frontend to the Django backend
when i login the refresh cookies is set like that :
response.set_cookie(
key="refresh",
value=str(refresh),
httponly=True,
secure=False,
samesite="None",
...
Advice
0
votes
4
replies
33
views
Need help regarding open source contribution as a beginner
I am in a phase where I select a repo that is perfect for me. A problem arises when I pick an issue from the repo, then I go blank on how to approach it. So my main question is how to solve that issue,...
1
vote
1
answer
50
views
Unable to get RECAPTCHA response properly
I'm trying to get a RECAPTCHA v2 request + response in my web project but so far I've got a lengthy g-recaptcha-response in my URL when I trigger the captcha action in my project. I'll provide the ...
Advice
0
votes
5
replies
50
views
What is my nameless "function"'s name in JavaScript?
Ok, let me start by stating some facts, then comes my question.
Functions in JavaScript can optionally have names themselves:
(function f1() {}).name
yields 'f1', because the function has a name when ...
-3
votes
0
answers
61
views
How can I implement Letter Boxed word validation in JavaScript? [closed]
I’m working on a small browser-based version of the NYT Letter Boxed game.
The game rules are:
Players create words using letters from a “box” of letters.
Each word must start with the last letter of ...
1
vote
0
answers
46
views
Why does my Cloudflare Worker still throw “No such module 'node:fs' / 'fs'” even with nodejs_compat enabled?
I’m trying to use a Node.js library inside a Cloudflare Worker (deployed with Wrangler).
My wrangler.toml:
name = "my-worker"
main = "src/index.ts"
compatibility_date = "2025-...
1
vote
1
answer
67
views
Why do I need to refresh my page to see changes in UI after updating watchlist, even though the database updates correctly?
I'm building a stock dashboard using Next.js 13 (App Router) with React Server and Client Components. I have a "watchlist" feature where users can add/remove stocks, and the changes are ...
0
votes
0
answers
23
views
Astro won't run when there's "Local images must be imported" error and I can't find what's throwing the error
I am making a blog and am currently adding support for image thumbnails to my blog posts, but Astro keeps telling me "Local images must be imported". Now it won't load my site's thumbnail ...
-4
votes
0
answers
89
views
How to change the color of a calculation result depending on a threshold, in Javascript [closed]
I have a HTML table, 13 rows versus 7 columns. The first 8 rows are used to enter numerical data like:
<td><input type="number" id="value1" class="tds"></...
1
vote
0
answers
21
views
Disable Auto Chart Move on new data push
In AmCharts 5, when a new data is pushed into the series (Line Series or Candlestick Series whatever), the chart is moved a little bit to adjust the position for the new one. It is the default ...