Error module not found , key.json #188
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: question
Request for information or clarification. Not an issue.
Need help. I am trying to use App router here using NextJS.
Error says Cannot find module
error Error: Cannot find module 'C:\path\to\project\packages\frontend\public\google\client.json' at webpackEmptyContext (C:\path\to\project\packages\frontend\.next\server\app\api\captions\route.js:22:10)
Now, the
client.json
file is placed inpublic/google
directory and I'm trying to access it in api route.tsThis is the code in
route.ts
// app/api/captions/route.ts
The text was updated successfully, but these errors were encountered: