-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
Help me please resolve a problem with description below:
- Describe the problem
I developed server (express + oracledb) witch work perfect and have no problem with getting data from Oracle.
Then I wanted to create a bundle (using webpack 4) and run my bundle separeted from directory where I working.
And I've got the next message (my problem):
Error: NJS-045: cannot load a node-oracledb binary for Node.js 10.16.3 (win32 x64)
Looked for D:\test\build\Release\oracledb-4.0.1-win32-x64.node, D:\test\build\Release\oracledb.node, D:\test\build\Debug\oracledb.node
Node-oracledb installation instructions: https://oracle.github.io/node-oracledb/INSTALL.html
I placed my bundle into "D:\test" catalog.
I copied oracledb-4.0.1-win32-x64.node file into "D:\test\build\Release" catalog (but error is still have).
- Include a runnable Node.js script that shows the problem.
My webpack config is really simple:
const path = require('path');
module.exports = {
mode: 'production',
entry: {
server: './index.js'
},
output: {
path: path.join(__dirname, '../dist'),
publicPath: '/',
filename: '[name].js'
},
target: 'node',
node: {
__dirname: false,
__filename: false,
}
};
- Run node and show the output of:
Platform: win32
Version: v10.16.3
Arch: x64
Oracledb: 4.0.1
node --version
v10.16.3
- What is your Oracle Database version?
Oracle Client version 12.2.0.1.0
Thanks for any future help or advice.