ReferenceError: module is not defined
in my server function file called blog-server-actions.server.ts this works:
import {readFile} from 'node:fs/promises';
but this does not:
import {resolve} from 'node:path';
Both are from node so why does the second one not work? How can this be resolved? Both are executed server side.
I am using using vite and Tanstack Start 1.129.50 Replies