Error: Cannot find module '../../../../server/api-utils/get-cookie-parser'
Answered
Chinese perch posted this in #help-forum
Chinese perchOP
Error: Cannot find module '../../../../server/api-utils/get-cookie-parser'
Require stack:
- H:\GitStuff\votingbot-web\node_modules\next\dist\shared\lib\router\utils\prepare-destination.js
- H:\GitStuff\votingbot-web\node_modules\next\dist\shared\lib\router\utils\middleware-route-matcher.js
Require stack:
- H:\GitStuff\votingbot-web\node_modules\next\dist\shared\lib\router\utils\prepare-destination.js
- H:\GitStuff\votingbot-web\node_modules\next\dist\shared\lib\router\utils\middleware-route-matcher.js
5 Replies
Chinese perchOP
Note that I don't use anything related to cookie parser
Tried reinstalling by npm i next@latest
"use server";
import discordRest from "@/client";
import { Routes } from "discord-api-types/v10";
import { notFound } from "next/navigation";
export async function GET(
request: Request,
{ params }: { params: { guildId: string } }
) {
try {
const guild = await discordRest.get(Routes.guild(params.guildId));
if (!guild) return notFound();
console.log(guild);
return Response.json({ guildId: params.guildId });
} catch (err) {
console.error(err);
}
} this is the only route i haveChinese perchOP
hey
Chinese perchOP
Fixed in next@canary
Answer