Jokerz
Jokerz
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Jokerz on 7/21/2024 in #questions
anyone running into failed to connect to daemon? i cant run pnpm dev
21/07/24 10:57:18] ➜ sol-eats git:(main) ✗ pnpm dev

> create-t3-turbo@ dev /Users/daniel/Documents/Repos/sol-eats
> turbo watch dev

• Packages in scope: @acme/api, @acme/auth, @acme/db, @acme/eslint-config, @acme/github, @acme/nextjs, @acme/prettier-config, @acme/tailwind-config, @acme/tsconfig, @acme/ui, @acme/validators
• Running dev in 11 packages
• Remote caching disabled
× failed to connect to daemon
╰─▶ server is unavailable: channel closed
21/07/24 10:57:18] ➜ sol-eats git:(main) ✗ pnpm dev

> create-t3-turbo@ dev /Users/daniel/Documents/Repos/sol-eats
> turbo watch dev

• Packages in scope: @acme/api, @acme/auth, @acme/db, @acme/eslint-config, @acme/github, @acme/nextjs, @acme/prettier-config, @acme/tailwind-config, @acme/tsconfig, @acme/ui, @acme/validators
• Running dev in 11 packages
• Remote caching disabled
× failed to connect to daemon
╰─▶ server is unavailable: channel closed
1 replies
TTCTheo's Typesafe Cult
Created by Jokerz on 1/13/2023 in #questions
Vercel - Module not found: Can't resolve
On a new deployment I am getting a new error where I haven't changed anything at all in these files.
Failed to compile.
./src/pages/api/trpc/[trpc].ts
Module not found: Can't resolve '../../../server/api/root.js' in '/vercel/path0/src/pages/api/trpc'
./src/pages/api/trpc/[trpc].ts
Module not found: Can't resolve '../../../server/api/trpc.js' in '/vercel/path0/src/pages/api/trpc'
Failed to compile.
./src/pages/api/trpc/[trpc].ts
Module not found: Can't resolve '../../../server/api/root.js' in '/vercel/path0/src/pages/api/trpc'
./src/pages/api/trpc/[trpc].ts
Module not found: Can't resolve '../../../server/api/trpc.js' in '/vercel/path0/src/pages/api/trpc'
Here is the contents of my [trpc].ts
import { createNextApiHandler } from "@trpc/server/adapters/next";

import { env } from "../../../env/server.mjs";
import { appRouter } from "../../../server/api/root.js";
import { createTRPCContext } from "../../../server/api/trpc.js";

// export API handler
export default createNextApiHandler({
router: appRouter,
createContext: createTRPCContext,
onError:
env.NODE_ENV === "development"
? ({ path, error }) => {
console.error(
`❌ tRPC failed on ${path ?? "<no-path>"}: ${error.message}`
);
}
: undefined,
});
import { createNextApiHandler } from "@trpc/server/adapters/next";

import { env } from "../../../env/server.mjs";
import { appRouter } from "../../../server/api/root.js";
import { createTRPCContext } from "../../../server/api/trpc.js";

// export API handler
export default createNextApiHandler({
router: appRouter,
createContext: createTRPCContext,
onError:
env.NODE_ENV === "development"
? ({ path, error }) => {
console.error(
`❌ tRPC failed on ${path ?? "<no-path>"}: ${error.message}`
);
}
: undefined,
});
2 replies