Skip to main content

Questions tagged [tsx]

Extension for TypeScript files using JSX syntax

0 votes
2 answers
37 views

How to compare two tsx elements in react + tsx

i want to compare two react tsx elements. i am still new to react and tsx. but i am unale to do so even after copying and pasting the exact elements to compare. Can you tell me why and how to fix it? ...
Anirudh Agrawal's user avatar
1 vote
0 answers
20 views

axios error when connecting to the server and post error

I'm setting up a social network as a fullstack training project, I made the frontend, connected it to the database and made the feed, when I clicked "send", the comment I placed to appear in ...
Breno Dias's user avatar
-2 votes
1 answer
45 views

React-Native can't find function, but it's there

I'm developing an app with React-Native for Android. The app was supposed to use the ML Kit PoseDetection API of Google to count reps of an exercise. Right now I just want the app to open the camera, ...
SetchFrank's user avatar
0 votes
1 answer
63 views

Redirection after a succeful login in vaadin application

This is my : login.tsx import { ViewConfig } from '@vaadin/hilla-file-router/types.js'; import { useSignal } from '@vaadin/hilla-react-signals'; import { LoginI18n, LoginOverlay, LoginOverlayElement } ...
Ninoslol Ninoslol's user avatar
0 votes
1 answer
30 views

remove empty space from -translate-y using tailwind css

I have an issue where there's empty space in my profile container which I'd like removed from the profile container <div className='h-auto w-[650px] z-10 rounded-xl' style={{ backdropFilter: `...
loona's user avatar
  • 1
0 votes
0 answers
29 views

Next.js not rendering MDX components

I'm trying to render a mdx file on my NEXTJS portfolio website for a blog of sorts. I'm able to get the text of the mdx file onto my site, but for some reason my site won't render the mdx file ...
John Carraher's user avatar
0 votes
0 answers
23 views

Multiple 'Restarting server/server.js' messages when using 'tsx --watch' in script

I've added a tsx --watch command to my package.json scripts to watch changes in my server file. Here's the relevant part of my package.json: "scripts": { "dev": "...
Michael's user avatar
  • 317
0 votes
0 answers
30 views

Import tsx file

My product has two part , first part can't import referral part, and import link shows light pink color it says that it hasnt value! I send both codes please guide me to fix this issue Thanks import { ...
Billy Kid's user avatar
0 votes
1 answer
45 views

How to pass route children to root App in SolidJS in typescript?

I am trying to figure out to pass route elements to root element in typescript. I am currently using "@solidjs/router": "^0.13.6". Here is a demo of what I want to achieve. I want ...
Dukhi Atma's user avatar
0 votes
0 answers
25 views

"Accept" giving headaches in React Dropzone

Error thrown in terminal: Argument of type '{ accept: { 'image/png': string[]; 'text/html': string[]; }; maxFiles: number; onDrop: (acceptedFiles: T[]) => void; }' is not assignable to parameter of ...
InfernalCoder's user avatar
1 vote
0 answers
33 views

@typescript-eslint/no-unsafe-assignment: "Unsafe assignment of an `any` value" error caused by nullish coalescing an array to undefined

Here is the setup, a simple React component that accepts an optional array of strings. Using typescript: "^5.5.2" and @typescript-eslint/eslint-plugin: "^7.13.1" type Props = { ...
Josh Bradley's user avatar
  • 1,934
0 votes
1 answer
20 views

Video.js Player Initialization/currentTime Causes Video Not to Display in React App with Google Cloud Storage URLs

I am using Video.js to wrap Google Cloud Storage video public URLs, so that I can both skin it and control what second the video plays at (for example, play at 12 seconds) I have the following in my ...
theGreenCabbage's user avatar
0 votes
0 answers
43 views

Intellij dosen't understand Typescript on React project?

I'm trying to learn React (Vite) with typescript. But I can't get Intellij to work with Typescript. All tsx-files is red, as Intellij does not recognize the language, if I hover it says "...
Robin Lundell's user avatar
0 votes
0 answers
28 views

Node.JS console.log output is not shown in Windows cmd

I'd like to add some console.log debugging code into my TS script and it is not displayed currently. I've added the following to package.json: "start": "dotenv -- node --import tsx -e '...
Evgeny's user avatar
  • 159
-1 votes
2 answers
45 views

Specify async function in React prop expression

I have a Button which is disabled depending on an isSubmitDisabled function which is defined as async because it has an async part. <Button type="button" disabled={isSubmitDisabled()}>...
gene b.'s user avatar
  • 11.5k

15 30 50 per page
1
2 3 4 5
51