I’m writing in Nest.js framework for 3 years and i got the message in by backend-application: I researched nest.js github and stuck what is the problem and why it says about some deprecation of useable decorators. Does anyone know how to solve this problem or what will be in the next major version of Ne…
How do I combine these three regex into one?
I’m trying to make a regular expression that only accepts: Min 100 and atleast 1000 characters, characters “,’,<,> aren’t allowed, two full stops one after another aren’t allowed. This is what I have for now: ^.{100,1000}$ → for 100 to 1000 characters ^[^”‘<>]*$ → for…
OrbitControls on a shared camera cannot handle panning
I am trying to create two renderers on two different div containers. Each renderer wish has its own OrbitControls for updating the associated camera. The camera is shared between the two renderers. The goal is to sync the camera for OrbitControl (so that two containers can have the same camera view) and rende…
How to change Fluent UI icon color on mouse hover?
i am using Fluent UI in my project. I initializing my button with this simple code in javascript: and i can override default color to asked one. My question is, how to set mouse hover color over button? https://learn.microsoft.com/en-us/javascript/api/react/iiconprops?view=office-ui-fabric-react-latest#@fluen…
undefined is not an object (evaluating ‘navigation.navigate’) when trying to navigate to a file that will open camera on the phone
I’m trying to navigate to my page “CameraPage.js” but I’m getting this error “undefined is not an object (evaluating ‘navigation.navigate’)”. Can anybody see the problem? This ismy first question here so please tell me if I can be more specific. Here’s my …
Add a darkmode to your site via JavaScript
I’m a beginner and I set myself a challenge: create a darkmode for my portfolio with JS functions. HTML : JAVASCRIPT: But I have a problem. I use “if…esle”. The “if” part works. But the “else” part doesn’t work. Normally, if the user has already clicked on…
Why I can’t do with Switch-Case what I do with If-Else in JS?
Can you help about the JS DOM example below, The if-else structure I specified in example 1 works, but the switch-case structure I specified in example 2 does not work. The switch-case structure does not work, although they both function the same. Why ? Thanks — Example 1 / Works — — Example…
How to convert array to object and assign value in Javascript?
I have array value and object for data mapping. reduce method is not working for object mapping, here is sample data. the array value is object value is need to form new object with the response Answer While I usually avoid recommending the usage of eval, this specific case seems to be a valid use-case for ev…
Unable to update nodes position using d3 force and Svelte
I’m trying to create a simple network using D3 force and Svelte. The network position should depend on the container dimensions computed using bind:clientWidth and bind:clientHeight. I mean that if the network container has width=200, height=300, then the network center should be x=100, y=150. The code …
React, setInterval not working properly, h1 element not being updated correctly
I want to create a simple React app that upadates a h1 element every second with setInterval function. I have an array with strings and every second I want randomly pick a string from that array and uses that string inside h1. But my code doesn’t work properly. h1 is not being updated every second but e…