Ready to post? First, try searching for your answer.
Hi,
I try t migrate from V2.7 to V4.1
My source using folder src.
I create file src/lib/auth0.ts
import { Auth0Client } from '@auth0/nextjs-auth0/server'
export const auth0 = new Auth0Client({
authorizationParameters: {
audience: process.env.AUTH0_AUDIENCE,
scope: process.env.AUTH0_SCOPE
}
})
I put path in tsconfig.server.json
"baseUrl": ".",
"paths": {
"@/lib/*": ["src/lib/*"]
}
I imported into server/services/auth.ts
import { auth0 } from '@/lib/auth0'
And get the error when run ‘yarn dev’
[nodemon] starting `ts-node --project tsconfig.server.json server/index.ts`
Error: Cannot find module '@/lib/auth0'
try to add path to tsconfig.json and still get the same error.
Please help me.