749 questions
1 vote
0 answers
62 views
Is there a way to specify TSX attribute types on derived classes, which may have conflicting attribute sets, without using constructors?
I'm working on adding JSX/TSX support to a little UI library I'm making. I want to be able to define the view hierarchy using a system similar to this: <CCView frame="1 1 30 15" ...
1 vote
1 answer
78 views
pass data to tsx code stored in a variable
I have tsx stored as a template in a variable like so // file a let v = <div>text</div> This should be used with some context or parameters in other files. // file b import v from a.tsx ...
0 votes
1 answer
73 views
MUI - Round border radius FormControl
I have a FormControl which currently looks something like this: Now the problem is in the image below, the label Username is getting set at the edge due to the borderRadius which is making the label ...
0 votes
1 answer
118 views
type string is not assignable to type button submit reset undefined ts 2322 [duplicate]
I want to create component (custom modal form) in reactjs index file <CustomModalForm button={UserModalFormConfig.button} /> config file export const UserModalFormConfig = { button: [ ...
0 votes
1 answer
47 views
NPM Error during the scaffolding process for Motion Canvas
It should be a simple question, but it's a problem to me for I'm still a newbie in programming in general. When I changed the repository (cd <path>), installed the dependencies (npm install), ...
0 votes
0 answers
50 views
TS2307: Cannot find module for imported SVG in React component library when used in another MFE
I'm working on a React component library where I'm importing SVG files as React components like this: import React, { FC } from "react"; import { ReactComponent as DashedDangerSvgIconBase } ...
0 votes
1 answer
39 views
Flexbox justify-content:space-between doesn't work properly with position:absolute
I'm facing this issue: I'm looking to use position:absolute, to adjust the span.materias__item-detalle, to bottom of the div, without caring the size that the h4 occupes. But, I also want to use ...
0 votes
0 answers
39 views
React Native: Component "auth" has not been registered & routing not working (Expo Router)
Im working in a react native expo app, and everything was working fine..until i added firebase to it. i created the firebase.js config file and then and made changes in my auth.tsx (for authentication,...
0 votes
0 answers
38 views
LayoutTransition react issue
I am writing a web application in react-with-typescript: I use index.tsx as a layout component, I need to somehow delay the transition between pages so that the animation of filling the screen can ...
0 votes
0 answers
37 views
Can I define a fake module to satisfy a import from a import?
i know this is a sort of a hack, but i'm trying to import a module on a DB seed script which is shared with the application, and for the application it is required to have a taint import import '...
1 vote
0 answers
533 views
Clerk's Expo Setup Not Working or a Rookie React Native Mistake?
I'm trying to follow Simon Grimm's tutorial on how to integrate Clerk Auth into a React Native app, but so far nothing happens. I've also tried to adapt it to what's on the updated Clerk docs, such as ...
0 votes
1 answer
154 views
Cannot get any response from langchain ChatOpenAI, no matter how long I wait
My code is as follows: import { config } from "dotenv"; import { ChatOpenAI } from "@langchain/openai"; config({ override: true }) const openai = new ChatOpenAI({ model: "...
0 votes
1 answer
694 views
Why won't HeroUI's component load with css using NextJS
(English is not my first language btw) I'm doing this school project and I'm using heroui as my component library, i thought I updated it to tailwind 4 and did the changes I thought I was supposed to ...
0 votes
2 answers
145 views
TypeScript optional prop with default value still possibly undefined [closed]
How can I defined optional property in React component with default value and make typescript understand that even though it's marked as optional in the props interface it has default value so it's ...
0 votes
0 answers
53 views
expo router not working properly on android
I'm trying to navigate to next screen on my app with expo router but it does not work as I expect. I need to click on the button twice before it actually takes me to the next screen which is not what ...