All Questions
Tagged with typescript javascript
63,641
questions
0
votes
0
answers
16
views
Simple sticky scroll effect causes glitch on mobile browsers
I wanted to use a scroll effect (parallax + filters) in a very simple page. It's just a sticky 120vh div with a background image and some text.
Everything works fine in the desktop browser and with ...
0
votes
1
answer
12
views
How to build a Vue web component which reflects an internal state as an attribute?
I am building a web component input which looks like this with Vue 3:
<my-input value="Search"></my-input>
How can I make sure that the value attribute is always equivalent to ...
0
votes
0
answers
5
views
Mapbox: Text of the point/circle behind is visible over the point in front
I want to show the points and to write data inside. Problem is that the data (numbers) are shown for the points behind instead of the ones in front.
I would also like for smaller number circles to ...
0
votes
0
answers
12
views
@iFrame-resizer/react implementation error - Uncaught SyntaxError: Unexpected token 's', "scroll-to-top" is not valid JSON
I am using the latest version of iframe-resizer/react for automatically adjusting the height and width of the iframe.
Whenever I'm reacting the content, I'm getting a runtime error stating -
VM2860:1 ...
0
votes
0
answers
11
views
Getting the Editor Content based on the Cursor Position in a Vs Code Extension
1Are there some available ways for getting the entire function based on the current cursor position in the Vs code Editor ,
For Eg. Refer This Image here my cursor is at a line inside the function , ...
0
votes
1
answer
49
views
I get the error that there is nothing available
I get the following error in the project I developed using React and Typescript.
export 'useTableProps' (reexported as 'useTableProps') was not found in './useTable' (possible exports: useTable)
It ...
0
votes
0
answers
14
views
Zod allow all keys matching regex
I'm using zod to validate some data, and I want to allow certain attributes, as well as any attribute with key matching /metadata_hash_.*/.
I cannot simply use a record because I am using mixed types, ...
-1
votes
0
answers
15
views
Select Multiple area on image using drag and create hotspot in angular 8/ javascript
Hi all,
I want to implement a feature where user can select multiple rectangular area on image and create hotspot.
Once user click and drag from one position to second position it will draw like ...
0
votes
0
answers
37
views
How to create video feed like Tik Tok?
How do I make the video start playing itself when the video is swiped?
When the user just opens the feed feed so that the video starts playing immediately, when there is a swipe to another video, then ...
1
vote
1
answer
41
views
Are interfaces required for the Dependency Inversion Principle?
I have read many examples about Dependency Inversion from classic SOLID in different coding languages.
// A is dependent on B
class A {
property;
constructor() {
this.property = (new B())....
1
vote
1
answer
39
views
Angular JS to Angular 18 migration
I'm trying to create a hybrid Angular JS Angular 18 application, and at first the application was running fine with this setup:
upgrade-module.ts
import { DoBootstrap, NgModule } from '@angular/core';
...
-3
votes
1
answer
39
views
Integrate third party API in Angular [closed]
I have one library that gives pharmacy related data and I want to integrate in Angular, they have simple JavaScript code as below:
$('div#rxContainer').WebRefill({
PharmacyId: "SOMEID",
...
0
votes
0
answers
17
views
Any IDE work with import typescript nodejs, react, libs correctly in monorepo style? [closed]
Let me give more context. In a previous monorepo, we could load any microservice in Intellij IDE (java based) and it would load the microservice and all libraries it depended on. Basically, we ...
0
votes
0
answers
16
views
Minified React error #321 on Lazy Loaded Components
I have a react.js app which is added to our clients' websites as a widget. The clients' websites can be built on any tool e.g. wordress / angular / react etc.
We've two types of widgets search and ...
0
votes
0
answers
11
views
require index.cjs not work in vite with puppeteer
I use electron to create a desktop app, and with vite to complie js file, I find vite seem not work with puppeteer, in the file vite generate, it always have error:
./build/index.cjs module not find
I ...