You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a repository with multiple projects (a Deno backend with Hono and a Node project with Next.js).
I'm trying to import Hono routes types in my Next.js project, which I got working in development, but at build time the types are checked following the type import, and typescript can't find JSR imports.
// Deno Hono serverconstroutes=app.route("/health",healthRoute);exportdefaultapp;// Route types for the RPC clientexporttypeAppRoutes=typeofroutes;
I was wondering if it was possible to add JSR packages inside the node_modules directory so that it could find the type declarations, or if it's possible to do in another way. I'm kind of stuck here.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I am working on a repository with multiple projects (a Deno backend with Hono and a Node project with Next.js).
I'm trying to import Hono routes types in my Next.js project, which I got working in development, but at build time the types are checked following the type import, and typescript can't find JSR imports.
I was wondering if it was possible to add JSR packages inside the node_modules directory so that it could find the type declarations, or if it's possible to do in another way. I'm kind of stuck here.
Beta Was this translation helpful? Give feedback.
All reactions