-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
Trying the template of Turborepo + Hono with the simple setup as it is I can deploy normally.
But if I extend the example to a more real world scenario, for example, introducing more folders and other packages from the monorepo like:
// hono - src/index.ts
import { ... } from "@acme/..."; // from a package in the monorepo
import { auth } from "./lib/auth"; // from a relative file for organization purposes
When trying the build I'm getting this kind of errors.
Error: ../../packages/api/src/index.ts(2,35): error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './orpc.js'?
../../packages/api/src/index.ts(3,32): error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './root.js'?
../../packages/api/src/index.ts(4,27): error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './root.js'?
How can I configure the tsconfig.json
or something to make it work?
koskeller and unnoq
Metadata
Metadata
Assignees
Labels
No labels