Skip to content

Module not found inside getNetworkServiceNames #1706

@saphitv

Description

@saphitv

Versions

oracledb: 6.7.0
node: 21.4.0
platform: win32
arch: x64

Description

I'm encountering issues launching my Next.js (15.0.3) project. It crashes upon startup.
I tried to change the require from an absolute path to ./thin/sqlnet/paramParser.js and it works.
I am using oracledb in thin mode.
I was wondering if i was doing something wrong or what the solution might be.

If the information is not enough, I remain at your disposal.

Stacktrace

 ⨯ ./node_modules/oracledb/lib/oracledb.js:668:47
Module not found: Can't resolve 'thin/sqlnet/paramParser.js'
  666 | //-----------------------------------------------------------------------------
  667 | async function getNetworkServiceNames(configDir) {
> 668 |   const { NLParamParser, tnsnamesFilePath } = require('thin/sqlnet/paramParser.js');
      |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  669 |   const nlParamParser =  new NLParamParser;
  670 |   const filePath = tnsnamesFilePath(configDir);
  671 |   const aliasht = await nlParamParser.initializeNlpa(filePath);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions