All Questions
80 questions
4
votes
2
answers
65
views
Remix Error: You defined an action for route "routes/" but didn't return anything from your action function
I am using Remix for my project and I am currently getting this error:
Error: You defined an action for route "routes/demo" but didn't return
anything from your action function. Please ...
0
votes
1
answer
65
views
Any idea if its possible, and why, Remix.run makes numerous API calls on the route loader?
I had an issue using Google Maps Places API inside the loader function of my _index.tsx route on my app. The code for the loader function is below.
For relevance, I would point out that I tried to ...
0
votes
0
answers
58
views
React Remix UseActionData() Not Triggered by incoming Webhook POST request
I have the action setup in a Remix React project as below to handle both Form Data & a JSON POST request from a webhook.
Both are working as expected and output the data to the console when ...
-1
votes
1
answer
44
views
Passing component from loader?
I want to use MDX for my project, but as I am getting my data (in markdown) via API, I can't just import it, I have to parse it in my app.
For this, I've made a function that'll take the raw markdown ...
0
votes
0
answers
40
views
React-cosmos with remix-js framework
Do any one knows how to make react cosmos render tailwind styles in remix js framework ?
if yes give me steps please
i am trying to render react components in remix js framework and and i have ...
0
votes
1
answer
533
views
Remix Submit Object
What's the right way of submitting object in remix using useSubmit()?
Do i need to JSON.stringify() it first? Then JSON.parse() it in the action?
My code below is working but not sure if its the best ...
0
votes
2
answers
1k
views
Remix React return json and redirect
In Remix, how do you return json first and then redirect after a success call on the API?
export const action: ActionFunction = async ({
request,
}: ActionFunctionArgs) => {
const formData =...
0
votes
1
answer
687
views
Generate and download PDF with remix
I am getting the HTML from a component and sending it to an endpoint that will generate the PDF. After that I want to download that generated PDF.
This is the code I use to call the endpoint with and ...
-2
votes
1
answer
580
views
Remix : how to return 404 response when custom exception class is thrown?
The database access layer of my Remix application throws a custom NoRecordFound error when no records are found in database lookups. Example (in app/routes/item.$id.jsx):
import { json } from "@...
0
votes
2
answers
590
views
Remix V2 useLoaderData issue while running in dev mode
In a basic Remix V2 app, i need help understanding if the following is expected behavior, a bug in V2, or possibly a missing configuration option or setting.
When running in development mode via npm ...
5
votes
1
answer
1k
views
How to add react-leaflet map to remixjs app
I'm trying to add a react-leaflet map to a remix app. I created a simple app using the npx create-remix@latest command. I then added react-leaflet using the installation instructions. Now I have ...
0
votes
0
answers
382
views
Creating folder and file using remix js
I'm trying to create a folder and a file inside that folder from my Remix js app. So after certain action, I did the following but this doesn't work from my Remix app.
But it works as expected when I ...
2
votes
1
answer
772
views
How to add a Google AdSense async script into my SSR remix run website
After going through a lot of hurdles I managed to put on the ads.txt file, robots.txt and dynamic sitemap.xml to my site and they all work flawlessly.
A while back my website was approved by google ...
0
votes
2
answers
451
views
On Root `/` Route, show SignUp Page if Unauthenticated otherwise show Dashboard Page if Authenticated in Remix?
Basically, I have 3 pages (or 2 routes) in my Remix app:
/login - Login
/ - Sign Up (if unauthenticated)
/ - Dashboard (if authenticated)
How do I make sure to show Dashboard on / route if ...
1
vote
1
answer
7k
views
Error: "TypeError: Failed to fetch dynamically imported module" when using dynamic imports in Remix application
I am encountering an issue with dynamic imports in my Remix application. When attempting to dynamically import a module using the following code:
const module = await import(../lib/lang/lang-${...