Remix Admin App - cannot get the "action" Route Module to work

I started with the remix template provided by Shopify, I am adding a simple “action” in my app._index.jsx file:

export async function action({ request }) {
return redirect(“/app/go_there”)
);
};

then here I have a button:

export default function Index() {

return (

Create Todo
); }

I have tried so many variations, but I keep getting this error when I pressed the button:

I am going nuts… any idea? thanks

Maybe you need the loader? https://remix.run/docs/en/main/route/loader

Watch videos also :eyes:

If you are a new in apps, follow the course https://shopify.dev/docs/apps/build/build?framework=remix

Hi, yes the loader works great. It is the “action” that does not. I did follow the course and watched videos… it looks so simple but does not work for “action”