Skip to main content
2votes
1answer
42views

How to use enviroment variables in Tailwind v4 (react-vite)?

At my current job, we use .env variables to set the main colors of the web pages. I've been using the new TailwindCSS setup where you define everything in index.css, but I haven't found a way to use ...
Becca's user avatar
-4votes
0answers
33views

Is there any way that I can improve this code? [closed]

I have created a small application using Java(23) + Spring Boot and React-Ts + Tailwindcss, that takes user input sends it to the backend and saves it on a Postgresql database. Both are located on the ...
Sam Andreev's user avatar
1vote
1answer
44views

Module not Found when using Custom Type .d.ts in Next.js

My question is extremely similar to this one: Use custom TypeScript typing .d.ts in nextjs (Module not found: Can't resolve ...) But the answer there doesn't seem to work for me. Basically, I just ...
McCrockett's user avatar
0votes
0answers
20views

How to avoid seeing ids of intl translations upon refreshing the react webpage?

I decided to use Intl on React because it can be combined with babel to automatically scan the app for strings to translate. The issue is that upon refreshing the page I can see shortly the 5-...
Grag Boal's user avatar
0votes
0answers
43views

React Query Stuck in Loading State on 406 Not Acceptable Response with Axios

I'm using React Query (@tanstack/react-query) to fetch RDF data from an API with Axios, but when the API returns a 406 Not Acceptable response, the query remains in a loading state indefinitely ...
Javad Farokhi's user avatar
1vote
1answer
52views

Using useFormState in a react-admin Form seems broken

I try using the hook useFormState from react-hook-form in a react-admin form I am a beginner for both modules so maybe I use them wrong but I searched through both of the documentations and I could ...
Paulo-99's user avatar
0votes
0answers
6views

How can I integrate Picco CSS with React while ensuring the same styles are applied when using the className attribute in React components?

<nav> <ul> <li><a href="#" class="secondary">...</a></li> </ul> <ul> <li><strong>Acme Corp</strong>&...
Davidsumsion's user avatar
0votes
0answers
64views

How to Separate Drag, Click, and Select Events in React Flow to seperate onNodeClick and onSelectionChange Behavior Clashes?

React Flow: Prevent onSelectionChange from Triggering on Node Click and Drag Issue I'm using React Flow (XYFlow) to implement a selection box that, when released, fits the view to the selected nodes. ...
Mourya Pranay's user avatar
2votes
1answer
47views

Need to resolve type error on MUI Barchart

I have developed a barchart with some fancy logic for bar labels which works in development but will not build unless I resolve the type error. I have tried extending BarChartProProps without success....
ShaunLangley's user avatar
0votes
0answers
22views

Next.js runs without issues in development mode (npm run dev), but after building (npm run build) and starting (npm run start), an issue occurs

My code import { Metadata } from 'next'; import Markdown from 'react-markdown'; import remarkGfm from "remark-gfm"; import rehypeRaw from "rehype-raw"; import { apiLink } from '@/...
i suck at programming's user avatar
0votes
0answers
30views

Fetching a JSON schema via an API call in the react-jsonschema-form library

How to fetch a JSON schema via an API call to my server in the react-jsonschema-form library? Any example is welcome.
Naydachy's user avatar
0votes
0answers
32views

How to create a typed component that given some data renders it when all data is available

I am trying to create a component that looks something like this: type FN = (...params: any[]) => React.ReactNode; export type LoaderProps<T extends FN> = { data: Partial<Parameters<...
DattaIT's user avatar
1vote
1answer
36views

How do I change the text color of a TextField component from Material UI using TailwindCSS?

I'm trying to change the color of a TextField component from Material UI, both the label and the input text only using TailwindCSS. Current MaterialUI version: 6.1.2 Current TailwindCSS version 3.4.1 ...
CrayonAzul's user avatar
0votes
1answer
486views

Undefined @mixin after updating sass-loader and sass to the latest versions in React TS

I have the following issue when running command npm run build in my React TS app ERROR in ./src/main/webapp/app/app.scss Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js)...
Dilyan Galabov's user avatar
0votes
1answer
61views

Typescript-React Arrow Function Parameter Typing

When using Typescript and passing an arrow function into another function as parameter, what would the type callout be? My situation is with React components, and I'm trying to pass an activation ...
Matt Becker's user avatar

153050per page
close