missing pairDevice in src/lib/gateway-ws.ts which is required by src/api/gateway/pair/route.ts:
... import { pairDevice } from "@/lib/gateway-ws"; ...
Got error as following:
21.03 > Build error occurred 21.04 Error: Turbopack build failed with 1 errors: 21.04 ./src/app/api/gateway/pair/route.ts:2:1 21.04 Export pairDevice doesn't exist in target module 21.04 1 | import { NextRequest, NextResponse } from "next/server"; 21.04 > 2 | import { pairDevice } from "@/lib/gateway-ws"; 21.04 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21.04 3 | 21.04 4 | export async function POST(req: NextRequest) { 21.04 5 | try { 21.04 21.04 The export pairDevice was not found in module [project]/src/lib/gateway-ws.ts [app-route] (ecmascript). 21.04 Did you mean to import gatewayRpcCall? 21.04 All exports of the module are statically known (It doesn't have dynamic exports). So it's known statically that the requested export doesn't exist. 21.04 21.04 Import trace: 21.04 App Route: 21.04 ./src/app/api/gateway/pair/route.ts 21.04 ./src/lib/drizzle/index.ts 21.04 ./src/app/api/auth/register/route.ts 21.04 21.04 21.04 at <unknown> (./src/app/api/gateway/pair/route.ts:2:1) 21.18 ELIFECYCLE Command failed with exit code 1.
missing pairDevice in src/lib/gateway-ws.ts which is required by src/api/gateway/pair/route.ts:
... import { pairDevice } from "@/lib/gateway-ws"; ...Got error as following:
21.03 > Build error occurred 21.04 Error: Turbopack build failed with 1 errors: 21.04 ./src/app/api/gateway/pair/route.ts:2:1 21.04 Export pairDevice doesn't exist in target module 21.04 1 | import { NextRequest, NextResponse } from "next/server"; 21.04 > 2 | import { pairDevice } from "@/lib/gateway-ws"; 21.04 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21.04 3 | 21.04 4 | export async function POST(req: NextRequest) { 21.04 5 | try { 21.04 21.04 The export pairDevice was not found in module [project]/src/lib/gateway-ws.ts [app-route] (ecmascript). 21.04 Did you mean to import gatewayRpcCall? 21.04 All exports of the module are statically known (It doesn't have dynamic exports). So it's known statically that the requested export doesn't exist. 21.04 21.04 Import trace: 21.04 App Route: 21.04 ./src/app/api/gateway/pair/route.ts 21.04 ./src/lib/drizzle/index.ts 21.04 ./src/app/api/auth/register/route.ts 21.04 21.04 21.04 at <unknown> (./src/app/api/gateway/pair/route.ts:2:1) 21.18 ELIFECYCLE Command failed with exit code 1.