Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
24 views

I am looking for a solution to a (apparently rare) setup of a .vscode/launch.json config file, specifically for debugging Typescript directly. This is extremely easy and simple to do manually in ...
The-Stanislav's user avatar
1 vote
0 answers
63 views

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" ...
JackMacWindows's user avatar
1 vote
1 answer
80 views

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 ...
stot's user avatar
  • 1,131
0 votes
1 answer
80 views

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 ...
avishekdr's user avatar
  • 1,154
0 votes
1 answer
118 views

I want to create component (custom modal form) in reactjs index file <CustomModalForm button={UserModalFormConfig.button} /> config file export const UserModalFormConfig = { button: [ ...
badak bercula's user avatar
0 votes
1 answer
48 views

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), ...
Julia Andriessan's user avatar
0 votes
0 answers
50 views

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 } ...
Sumisha Sankar's user avatar
0 votes
1 answer
39 views

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 ...
fussi's user avatar
  • 23
0 votes
0 answers
39 views

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,...
Ayan Khan's user avatar
0 votes
0 answers
38 views

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 ...
Frank McLover's user avatar
0 votes
0 answers
37 views

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 '...
gcb's user avatar
  • 14.5k
2 votes
0 answers
549 views

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 ...
psygo's user avatar
  • 7,863
0 votes
1 answer
159 views

My code is as follows: import { config } from "dotenv"; import { ChatOpenAI } from "@langchain/openai"; config({ override: true }) const openai = new ChatOpenAI({ model: "...
SpongeBobbb's user avatar
0 votes
1 answer
714 views

(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 ...
Hendrick's user avatar
0 votes
2 answers
150 views

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 ...
Uladzislau's user avatar
0 votes
0 answers
53 views

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 ...
Eric Uche's user avatar
  • 169
0 votes
0 answers
40 views

When I run the command tsx watch src/bootstrap/server.ts I get this error: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. ...
waffletree's user avatar
0 votes
0 answers
54 views

(NOBRIDGE) WARN [Layout children]: No route named "inspection/[projectId]/[itemId]" exists in nested children: ["+not-found", "login", "new-project", "...
stacks's user avatar
  • 1
0 votes
0 answers
45 views

I'm trying to build a website in NextJS. In order to improve the UX, I created a Loader component. The problem The problem is that, when I start the Next server, even though the page is correctly ...
Aledpl5's user avatar
  • 35
0 votes
1 answer
87 views

In the Next.js 15.1.6 docs (App Router), the last code snippet on the Metadata Files: opengraph-image and twitter-image | Next.js page explains how to fetch a local image on the file system and pass ...
Shawn's user avatar
  • 11.5k
0 votes
1 answer
85 views

I'm building a workout tracking app with React using typescript, and I’m having trouble with a delete button. I have all the saved workouts in a list and when I try to remove a workout from the list ...
user29377502's user avatar
0 votes
1 answer
167 views

I have an extremely basic express.js server that when I run tsx server.ts it causes the node process to quickly get to over 8gb of memory and start to hit swap. Code import express from 'express'; ...
joshk132's user avatar
  • 1,113
0 votes
1 answer
120 views

Inversify README claims that it requires "emitDecoratorMetadata": true in your tsconfig.json to be used with Typescript. But I am able to set it to false and my app runs just fine with ...
cambunctious's user avatar
  • 9,861
3 votes
1 answer
127 views

I'm working on a react-native app, using the react-native-calendars Agenda feature. I initialize the agenda with two items, containing a title and a description. Initially, the description is hidden. ...
newby73's user avatar
  • 215
1 vote
0 answers
535 views

I am building a React project using ShadCN components and want to implement a "Select All" checkbox functionality. However, I want to achieve this without using hooks (e.g., useState or ...
Roronoa Zoro's user avatar
1 vote
1 answer
167 views

I am building my own TSX-based renderer for a specific runtime which is not web. I have two files in my library code: // h.ts import { type JSXInternal } from './jsx.js'; export function h(props: ...
Harshal Patil's user avatar
0 votes
1 answer
57 views

1. Project initialization with Vite.js pnpm create vite √ Project name: ... demo √ Select a framework: » Vue √ Select a variant: » Customize with create-vue ↗ $ Vue.js - The Progressive JavaScript ...
lril ho's user avatar
0 votes
0 answers
77 views

I am using TypeScript to build a Node.js application. After compiling the code, when I run the output JavaScript file using npm start, it throws the following error: When I run the following command: ...
M BHARATH's user avatar
0 votes
0 answers
38 views

The Vue code runs and builds without any issues, but it does show an error. Colleagues who haven't updated VSCode don't encounter this error, but those who have updated do. Importing Fragment from ...
kagy's user avatar
  • 1
0 votes
0 answers
69 views

I am using ESM imports and tsx is unsuccessful at importing some modules. tsc compiles successfully in NODE_ENV production and I can run the output on node 20.10.0. tsx and NODE_ENV development (which ...
Anthony O's user avatar
  • 672
0 votes
0 answers
90 views

I'm running a script using tsx with the command npm run generate, and encountering the following output: Using 'openai' model provider Generating storage context... (node:23984) [DEP0040] ...
Omri Developer's user avatar
0 votes
1 answer
298 views

Sry that I'm new to front-end development. I have a JS function that operates Monaco editor's API. Let's suppose it looks likes this: export function setTheme(themeName) { fetch(`./themes/${...
Heavysnowjakarta's user avatar
0 votes
1 answer
95 views

I was using highcharts in my next.js project and everything was fine. but suddenly I noticed the stock tools are not working. they are showing and I can select them but they are not working and they ...
Amir mohammad Sedaghat nia's user avatar
1 vote
0 answers
394 views

for every icon import from the lucid react showing same error and its in typescripts environment. Module '"lucide-react"' has no exported member 'LayoutDashboard'.ts(2305) import ...
Rithick's user avatar
-1 votes
1 answer
320 views

I am building an electron app for a project, where i am loading index.html in browserWindow, in that html i am downloading the script which is bundled via esbuild. The script is downloaded ...
Harit Saxena's user avatar
1 vote
1 answer
170 views

I have a file architecture as follows: projects | -page.tsx -[id] | -template.tsx -overview | -page.tsx -settings | -page.tsx I am using server-rendered pages. I want ...
Alex H Hadik's user avatar
-1 votes
1 answer
104 views

I would like to use TSX for Markdown rendering, the problem - TypeScript TSX Compiler strips newlines and it breaks the markdown. The example below would output text as Some text. - list item a - list ...
Alex Craft's user avatar
  • 15.8k
0 votes
1 answer
39 views

import { ref } from 'vue' const Test = () => { const msg = ref('I am Brave') const changeMsg = () => { console.log('aa') msg.value = 'I will get everything I want' } return ( ...
Lenny Lee's user avatar
0 votes
1 answer
42 views

I am trying to create a simple next.js application and trying to generate a table as follows: interface User { id: number; name: string; email: string; } const UserTable = async () => { ...
Berk Takıt's user avatar
-1 votes
1 answer
25 views

I have a project named "Wikuhotel" use Expo React Native, if i open it on web the "Cart.tsx" screen show perfectly but when i open it on phone it show nothing I tried to log the ...
Lowercase_'s user avatar
0 votes
3 answers
277 views

I am writing a page to illustrate how to use a component I've developed and I'd like to build pairs of examples (rendered) with TSX source code that produces the example, ideally not having to repeat ...
Okarin's user avatar
  • 1,024
0 votes
0 answers
75 views

I'm losing my mind trying to get scrolling to work in React Native using Expo. I've gone through the entire documentation for both ScrollView and FlatList and spent a whole day debugging, but ...
lauaall's user avatar
0 votes
1 answer
184 views

Here is my code: import EventsContainer from "@/components/events/events-container/EventsContainer"; // Main container component interface EventProps { events: any[]; pastEvents: any[]; ...
Nyochembeng Nkengafack's user avatar
0 votes
1 answer
68 views

I have been working on password generator and I want a feature that generates the initial password when the user opens the site. This takes time to load lets say 1-2 seconds. const [password, ...
Prabesh Shrestha's user avatar
0 votes
3 answers
110 views

I am trying to make a simple task list (a to-do list with a different name). When I click a TaskAdder it calls the function add_task which is a string for now. This should update the effect in the ...
Player_X_YT's user avatar
1 vote
0 answers
30 views

TSX question. I define an ES6 Map which is Map<string,string>, where all of the following constants are strings. There are no issues here. export const CALLER_TYPE_TITLE_MAP = new Map<string,...
gene b.'s user avatar
  • 12.7k
0 votes
1 answer
230 views

I have 2 controlled inputs on a form, and I only need to validate that 1 of them is filled in. I'm having trouble with the validation logic. function atLeastOneChecked(inputs: ...
J.Cart's user avatar
  • 582
1 vote
0 answers
74 views

Could you please help? In my project, I'm using Vue 3 + TypeScript + TSX + Vuetify. When I try to use Vuetify components, such as v-btn, I encounter a TypeScript error when listening to the onClick ...
yamadetta's user avatar
-1 votes
1 answer
54 views

I have a code as following and when I want to bold a word I have no idea why html does not apply to it in my tsx file <myComponent contents={`<strong>example</strong> `} > ...
Amir Torkashvand's user avatar
0 votes
2 answers
55 views

I am trying to access nested JSON objects such as the code below, which works currently. <img id="inactive-drive2" src='/src/assets/image/InActiveDrive.png' className={info.data.drives[1]?...
hmahdavi's user avatar
  • 2,392

1
2 3 4 5
15