javascript Questions
3
Solved
I'm a newbie in React-Native and I have an issue with fonts adding, I'm trying to load a custom font from .otf file, but I have an error:
fontFamily "Pixel-Musketeer" is not a system font...
Vanatta asked 16/12, 2022 at 7:36
4
Solved
I need to format a number in JavaScript with separators that may be defined at runtime.
The combination of thousand and decimal separator may not match a specific locale.
Is there a way to provi...
Trefoil asked 8/11, 2016 at 11:12
4
Solved
I'm trying to edit the cssText property of a cssRule. I've seen it done often:
Why does altering the height in cssText remove the background: none?
Relocate my images at startup
Usually its don...
Mcintosh asked 5/9, 2013 at 17:59
7
Solved
I have a problem in determining browsers.
I've tried using navigator and well, it did not help.
I used alert(navigator.appName); to determine the browser and I'm currently using Google Chrome, when...
Lanugo asked 8/5, 2012 at 20:26
7
Solved
So I have a simple script that adds "li" elements to the "ul" and assigns them a class. Now I want to change the class of "li" item on click event.
Here is the HTML:
<form class="form">
<...
Cristacristabel asked 8/2, 2017 at 11:27
5
Solved
At some point, my VS Code has started to import react hooks from react/cjs/react.production.min, not from react.
This annoys me because it only causes errors when I'm developing on my localhost:300...
Gerta asked 15/3, 2022 at 2:19
1
I am trying to create a new vue application but I keep getting this Type Error, I'll show you my entire command line. All I did was run npm init vue@latest
npm WARN config global `--global`, `--loc...
Jaundiced asked 21/3 at 15:57
7
Solved
I would like to print only the contents of a textarea element from a website page. In particular, I would like to ensure that nothing gets clipped by the boundary of the textarea as the contents wi...
Pelops asked 7/11, 2008 at 16:48
4
Solved
I run my nextjs project by
npm run dev
NOT
npm run build
but it automatically creates the .next folder. and later I tried to delete that folder, but it automatically generated again.
why??
I don'...
Wight asked 31/3, 2022 at 6:51
4
Solved
I have a Bigint column in my Table in SQL server as a Primary Key and when I request from a client with axios or fetch in React, it has a problem with ids like 9223372036854775800 and converts all ...
Covering asked 5/5, 2019 at 17:11
6
I am currently working on a website using Next.js 14, with the aim of exporting it as a static site for distribution via a CDN (Cloudflare Pages). My site requires internationalization (i18n) suppo...
Tight asked 15/1 at 18:30
4
trying to import my first .gltf model in three.js with the parcel when greeted with a black screen and this error
SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSO...
Sort asked 1/12, 2022 at 16:43
3
Solved
I want to use a polyfill for optional chaining but I do not want to provide a polyfill for browsers which already support this feature.
Is there a way to determine whether a browser supports option...
Iterative asked 20/2, 2021 at 7:2
2
I'm working on a single-file script that is meant to be included on pages through a <script> tag, it's being built with Vite.js using the Terser minifier.
After making changes I noticed that ...
Gilboa asked 3/10, 2021 at 18:5
4
I am trying to upload files to my S3 bucket from my Node.js app, so I am following some very simple tutorials like this one.
The code is pretty straightforward :
const AWS = require("aws-sdk"); ...
Cantilena asked 16/6, 2020 at 16:45
6
I am trying to include a YouTube video in my react native project. Since I already tried react-native-youtube and did not work at all I tried installing react-native-video.
However, I am getting t...
Theorize asked 1/2, 2020 at 15:17
4
Solved
How do I make the variable "Partnum" not be case sensitive. When I run the script, it wont detect "aBcd" if I'm searching for "abcd" . I'm not sure what to do.
function doStuff() {
var ss = Spre...
Yser asked 6/12, 2010 at 23:47
3
Solved
I'm upgrading/refactoring an Angular project (to Angular 8, Electron 6, Ionic 4) and we decided to switch from TSLint to ESLint.
I setup some rules and they are running but I can't get a rid off t...
Kailey asked 5/9, 2019 at 8:3
3
Solved
I'm trying to split street name, house number, and box number from a String.
Let's say the string is "SomeStreet 59A"
For this case I already have a solution with regex. I'm using this fu...
Laudatory asked 30/3, 2021 at 8:17
6
Solved
I've been trying to work this out for almost an hour now, and I can't see myself getting much further with it without any help or explanation. I've used regex before, but only ones that are v...
Chane asked 14/5, 2018 at 12:17
4
How to convert 1e+30 to 1000000000000000000000000000000
I want number as it is entered by User do not convert like 1e+30.
How can achieve this? Is there any way to display actual digits after par...
Disaccharide asked 19/12, 2014 at 8:3
4
Solved
I currently have a <dialog> which I am opening via JS. For demonstration purposes, my dialog has a single <button> element within it.
My issue is, when I open the dialog using .showMo...
Lawabiding asked 14/5, 2020 at 12:55
2
Solved
Promise.race(promise1, promise2, ...) returns a promise with the resolve/reject result for the "fastest" promise from the list.
What happens to the other promises, i.e. those that "l...
Undervest asked 19/5, 2021 at 13:26
4
Solved
I've been dealing for a while with this problem and still can't tackle it.
I'm using React-query as a server state management library and I'm trying to get my UI state synchronized with my server s...
Cedillo asked 18/10, 2022 at 16:47
1
I am building an application using react and material-ui. Material-ui components comes with its custom classical blue-grey google style colors and I want to modify all of them with my custom ones. ...
Ira asked 26/4, 2022 at 16:25
© 2022 - 2024 — McMap. All rights reserved.