#Remix 2.4.1 with the Express template running in dev mode is not showing console.log

1 messages · Page 1 of 1 (latest)

final rivet
#

Hi, I'm using Remix 2.4.1 with the express template, and I don't know why I am not seeing the console logs in the loaders. For example:

export async function loader({ request, params }: LoaderFunctionArgs) {
    console.log('--- First call');
    await requireUserAuth(request);
    const loggedUser = await getUserAuth(request);

    const testApi = await fetch(`http://localhost:3000/api/v1/addresses/P123`);
    console.log('--- Second call');
    const response = await testApi.json();
    console.log('--- Third call');

    return json({ loggedUser, response });
}

I don't see any console.log in the terminal or the browser, but the route is working.

final rivet
#

I've solved with:

"dev": "npm-run-all build --parallel \"dev:*\"",
"dev:node": "remix dev --manual -c \"node --watch-path server.js --watch server.js\"",
"dev:remix": "remix watch"
final rivet
#

I don't know why it's not showing the loader console.logs in the terminal 😦