Questions tagged [tsx]
Extension for TypeScript files using JSX syntax
753
questions
0
votes
1
answer
20
views
Freshly generated Vite React TS template code shows errors in VSC but still runs
I've been trying to fix this for a year but no luck so far.
This is a freshly generated project using npm creat vite@latest and the template I chose was React with Typescript. No modification has been ...
0
votes
2
answers
38
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?
...
1
vote
0
answers
21
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 ...
-2
votes
1
answer
46
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, ...
0
votes
1
answer
64
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 } ...
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: `...
0
votes
0
answers
32
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 ...
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": "...
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 { ...
0
votes
1
answer
46
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 ...
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 ...
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 = {
...
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 ...
0
votes
0
answers
45
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 "...
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 '...