Skip to main content

Questions tagged [remix.run]

For questions regarding programming with the Remix web framework.

-1 votes
0 answers
11 views

Adding meta functions to my route.tsx files causes errors

I'm building a Remix application and added meta functions to each of my route.tsx files. They all look something like this: export const meta: MetaFunction = () => { return [ { title: "...
k00's user avatar
  • 35
0 votes
0 answers
21 views

remix react route config error - You must provide a non-empty routes array to createStaticHandler

I have made some changes to migrate a project to remix vite. I was running in some challenges related to route configuration under vite.config.ts. a few challenges I encountered were couldnt find a ...
Ahmed's user avatar
  • 3,163
-2 votes
1 answer
28 views

Custom Payment Gateway in Shopify like razorpay

I want to create Custom Payment Gateway in Shopify like razorpay. I have knowlage about remix, react, typescript and node js. Refrence:- https://github.com/RoopkamalDhindsa/shopify-extensibility-...
Ketul Patel's user avatar
0 votes
0 answers
13 views

React-Router useNavigation losing state when hitting redirect in loader

When navigating with a state, if the route navigated to contains a loader that has redirected, the state of the initial navigation is lost and replaced with a state of _isRedirect: true example of ...
Js94's user avatar
  • 9
0 votes
0 answers
7 views

Server loader state renders briefly, even with clientLoader.hydrate set to true

I have followed the guide for Client Data in the Remix Docs to implement client-side filtering for a list of products. However, even though I have set clientLoader.hydrate to true, the site renders ...
Jonathan Tuzman's user avatar
-1 votes
0 answers
26 views

MaxListenersExceededWarning: Possible EventEmitter memory leak detected - client fetch

I get the following error after navigating between two pages a couple of times. (node:14880) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 timeout listeners added to [...
Ank's user avatar
  • 181
-1 votes
0 answers
12 views

Remix invoking an action via useFetcher on page mount doesn't work

In remix I'm implementing user color scheme prefernce, I have it all working with setting a cookie on clicking a toggle. It invokes an action via useFetcher which stores color scheme in a cookie that ...
Labithiotis's user avatar
  • 3,947
0 votes
0 answers
18 views

Remix - Parent loader throwing 500 and nested loader returning a redirect

Today I bumped into an unexpected behaviour from Remix and I'd like to understand if I'm missing something. I have a loader in routes/main/loader.ts and another loader in routes/main._index/loader.ts. ...
se7entyse7en's user avatar
  • 4,264
0 votes
0 answers
12 views

Why is my scss module file is removed after hmr in remix application after changing tsx file?

I'm new to remix and I'm trying to get css modules working, it looks like the css is removed from the html after a hot reload I seem to have a pretty basic setup for my application and at the initial ...
Denny's user avatar
  • 1,783
0 votes
0 answers
18 views

Folder routes cannot be found in remix

I have a following route folder structure in my remix project - routes/ - example/ - index.tsx - add.tsx - edit.$id.tsx - delete.$id.tsx I am able to see index.tsx in the browser. But when I ...
Ahmed's user avatar
  • 3,163
0 votes
1 answer
35 views

Remix load route within route, like a reusable component

I am quite new to Remix and probably do not have the whole concept grasped correctly. What I am trying to achieve is the following: I want an endpoint which be displayed on /apicheck, this needs to ...
czioutas's user avatar
  • 1,058
-1 votes
0 answers
12 views

How to refresh JWT using Apollo GraphQL in Remix (SSR)

Has anyone figured out how to refresh a JWT using Remix and Apollo Client? I've been trying (and failing) to refresh a JWT using Apollo Client and Remix. I've seen a number of solutions, and none of ...
Evan Stern's user avatar
-1 votes
0 answers
10 views

Throwing an error from Apollo setContext and catching in onError

I'm trying to throw an error from within a setContext call and have that error caught by the onError link within Apollo. The problem is that it seems onError is never triggered when the error is ...
Evan Stern's user avatar
-1 votes
1 answer
31 views

Error: The pattern `api/email.js` defined in functions doesn't match any Serverless Functions inside the `api` directory (Vercel/Remix-run)

email.js serverless function generated by chatgpt in my root/api/email.js directory: //[root]/api/email.js //just a test function generated by chatgpt import sendEmail from "../utils/email"; ...
twominds's user avatar
  • 1,242
-1 votes
0 answers
25 views

Unable to Resolve "virtual:entry-sw " Error in Remix-PWA Setup with Esbuild

I see this when trying to run pnpm dev 🏗️ Building Service Worker in development mode... 💿 Built Service Worker in: 43.157ms 👀 Watching for changes in the service worker file... ✘ [ERROR] Could not ...
Kiteretsu's user avatar

15 30 50 per page
1
2 3 4 5
37