T
TanStack2mo ago
xenial-black

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.5
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?