node-oracledb
node-oracledb copied to clipboard
Error: Module not found: Can't resolve '@azure/app-configuration'
- What versions are you using?
- Node.js version
Node.js: 20.16.0
arch: x64
platform: win32
- package version
next: "14.2.5"
oracledb: "^6.6.0"
- database version
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.24.0.1.0
-
Is it an error or a hang or a crash?
error -
What error(s) or behavior you are seeing?
Import trace for requested module:
./node_modules/oracledb/lib/configProviders/ sync ^\.\/.*$
./node_modules/oracledb/lib/oracledb.js
./node_modules/oracledb/index.js
./src/app/api/v1/test/route.js
⨯ ./node_modules/oracledb/lib/configProviders/azure.js:46:32
Module not found: Can't resolve '@azure/app-configuration'
https://nextjs.org/docs/messages/module-not-found
- Include a runnable Node.js script that shows the problem.
When I write the code below and call http://localhost:3000/api/v1/test,
I get "Module not found: Can't resolve '@azure/app-configuration'" error.
I haven't written any code related to azure and I'm getting an error even though I just added require('oracledb')
.
Please check this error.
I've also attached the minimal executable code as a zip file.
// app/api/v1/test/route.js
export const dynamic = 'force-dynamic'
const oracledb = require('oracledb');
export async function GET() {
return Response.json('Hello', { status: 200 })
}