Description
For general questions:
I'm working on a project which uses AngularJS as fronted and NodeJS as backend. When I implement the .js folder that connects my oracle database server, the compiler gives me the error below.
Also the script works by itself via this command node app.js
How can I fix that?
Answer the following questions:
- What is your Node.js version? Is it 64-bit or 32-bit?
64-bit & v8.11.8
- What is your node-oracledb version?
v2.3.0
- What is your Oracle client (e.g. Instant Client) version? Is it 64-bit or 32-bit? How was it installed? Where is it installed?
64-bit & v12.2
- What is your Oracle Database version?
Up to date
- What is your OS and version?
Windows 10@Latest
- What is your compiler version?
- What Oracle environment variables did you set? How exactly did you set them?
- What is the
PATH
environment variable (on Windows) orLD_LIBRARY_PATH
(on Linux) set to? On macOS, what is in~/lib
?
All have been set up as in the installation files.
- What exact command caused the problem (e.g. what command did you try to install with)? Who were you logged in as?
const oracledb = require ('oracledb');
- What error(s) you are seeing?
WARNING in ./node_modules/oracledb/lib/oracledb.js
42:18-44 Critical dependency: the request of a dependency is an expressionWARNING in ./node_modules/oracledb/lib/oracledb.js
48:21-45 Critical dependency: the request of a dependency is an expressionERROR in ./node_modules/oracledb/lib/oracledb.js
Module not found: Error: Can't resolve 'path' in 'C:\Users\tbyor\Desktop\angularProject\Base\node_modules\oracledb\lib'
ERROR in ./node_modules/oracledb/lib/lob.js
Module not found: Error: Can't resolve 'stream' in 'C:\Users\tbyor\Desktop\angularProject\Base\node_modules\oracledb\lib'
ERROR in ./node_modules/oracledb/lib/querystream.js
Module not found: Error: Can't resolve 'stream' in 'C:\Users\tbyor\Desktop\angularProject\Base\node_modules\oracledb\lib'