Skip to content

AngularJS & NodeJS & OracleDB Implementation Has Problem With The Library #957

Closed
@tbyoran

Description

@tbyoran

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:

  1. What is your Node.js version? Is it 64-bit or 32-bit?

64-bit & v8.11.8

  1. What is your node-oracledb version?

v2.3.0

  1. 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

  1. What is your Oracle Database version?

Up to date

  1. What is your OS and version?

Windows 10@Latest

  1. What is your compiler version?
  1. What Oracle environment variables did you set? How exactly did you set them?
  1. What is the PATH environment variable (on Windows) or LD_LIBRARY_PATH (on Linux) set to? On macOS, what is in ~/lib?

All have been set up as in the installation files.

  1. 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');

  1. 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 expression

WARNING in ./node_modules/oracledb/lib/oracledb.js
48:21-45 Critical dependency: the request of a dependency is an expression

ERROR 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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions