2,528,867 questions
0
votes
1
answer
21
views
`subClass extends baseClass` and not with `new` keyword in JavaScript
I'm new to JavaScript and I'm trying to achieve the logic I have commented in the constructor method of the base class
export default class Building {
constructor(sqft) {
this._sqft = sqft;
...
0
votes
0
answers
10
views
OLA Map Web SDK With HTML, Javascript Not Showing Map
I'm trying to integrate OLA Map Web SDK In my project. I've gone through the documentation and tried everything I can but found nothing to be useful. Every time I got the following error:
Error: ...
0
votes
0
answers
34
views
Error while trying to create JWT token in register API using TypeScript
Code:
const newUser = new User({
username,
email,
password: passwordHash,
organization: null,
designation: null,
role: "user",
});
await newUser.save();
const ...
0
votes
0
answers
26
views
Failed Endpoint fetching
I have correctly crosschecked the endpoint names, my code is running just fine but I kept a breakpoint on the get method in the user controller the code doesn't seem to enter. the html and css is just ...
0
votes
0
answers
25
views
Message Not Received?
So I've just started exploring messaging between content and background scripts in Chrome. The following works in so far as it raises the alert as required.
Content
document.addEventListener("...
0
votes
1
answer
19
views
Supabase: Getting "role 'user' does not exist" error only when authenticated user queries product/category tables
Supabase: Getting "role 'user' does not exist" error only when authenticated user queries product/category tables
Problem Summary
I'm experiencing a strange issue with Supabase where:
When ...
-4
votes
0
answers
18
views
MidiPlayerJS doesn't actually play MIDI file [closed]
I wanted to make a MIDI player with vanilla JS, so I found a MIDI player module (in this case, MidiPlayerJS) and went to coding.
It worked well, but after a tweak on a part of the code completely ...
0
votes
0
answers
23
views
Using ASW Javascript SDK for S3 in the browser without Node.js
TLDR: How do i get the AWS S3 SDK (with Cognito aswell) in the browser without using Node.js?
Im trying to build a verry simple website and use Cognito with js for authenticating to AWS S3 buckets. I ...
0
votes
0
answers
16
views
React Native KeyboardAvoidingView causes flickering and layout shift when keyboard opens/closes
I'm building a chat screen in React Native and using KeyboardAvoidingView to keep the TextInput above the keyboard. But I'm running into the following issues:
When i open keyboard first time its ...
0
votes
0
answers
13
views
No Data in menu with Ant Design
I have to keep two type of dropdown in one component. And based on the props, I have to make that select to appear.
But when I am using select, it's not showing data in the UI :
https://i.sstatic.net/...
1
vote
1
answer
45
views
Animate camera to set positions
I’m trying to rotate/position a camera to arbitrary views of a model using three.js.
https://jsfiddle.net/17gf8q6o/
Problem: some of the animations go through the model (e.g. from top to bottom), ...
1
vote
1
answer
33
views
Rselenium won't switch to another tab
Using RSelenium, I'm trying to open a new tab and scroll down. Unfortunately, I can't make this work because my browser stays at the first tab. Does anyone know how to solve this?
This is a simplied ...
-2
votes
0
answers
76
views
I have a problem with the my the accuracy of my roulette game [closed]
I’m building a small roulette wheel game in JavaScript. The wheel spins correctly, but sometimes the pointer shows the number next to the one it actually lands on.
Here’s the relevant part of the code:...
0
votes
1
answer
27
views
Correct way to obtain address from a BIP39 seed phrase using ethersjs v6
What is the correct way to get an address from a seed phrase, using ethersjs v6?
This is what I'm using:
import { HDNodeWallet } from 'ethers';
const hdWallet = HDNodeWallet.fromPhrase(seedPhrase, ...
1
vote
2
answers
39
views
Provide manual tracking context when performing reads
Solid.js determines the tracking context (i.e. the effect that should rerun) when reading a reactive primitive (e.g. signal, memo) based on the library's internal global stack.
I need to slowly ...