Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to resolve some modules in Meteor 1.4.1.1 #516

Closed
oursonvie opened this issue Sep 26, 2016 · 8 comments
Closed

Unable to resolve some modules in Meteor 1.4.1.1 #516

oursonvie opened this issue Sep 26, 2016 · 8 comments

Comments

@oursonvie
Copy link

I installed oracledb using

meteor npm install --save meteor-node-stubs
meteor npm install oracledb --save

then when I try to load the module it turns me

Unable to resolve some modules:

  "../build/Release/oracledb" in
/Users/Tonny/Desktop/oracle/myapp/node_modules/oracledb/lib/oracledb.js
(web.browser)
  "../build/Debug/oracledb" in
/Users/Tonny/Desktop/oracle/myapp/node_modules/oracledb/lib/oracledb.js
(web.browser)

I can run example code using node

in using Node v6.5.0, instantclient-basic-macos.x64-12.1.0.2.0, instantclient-sdk-macos.x64-12.1.0.2.0, oracledb 1.11.0 on macOS Sierra 10.12

@alberto-gglez
Copy link

alberto-gglez commented Oct 13, 2016

The same here. I am using Ubuntu, Meteor 1.4.1.2 and Node 4.6. I've tried to re-build the package but didn't work.

Any hints?

@dmcghan
Copy link

dmcghan commented Oct 14, 2016

Have you reached out to the Meteor team? I'm wondering if there's a way to enable a more verbose error output. "Unable to resolve some modules" is not ver helpful...

@oursonvie
Copy link
Author

sorry guys, I did the Oracle part in Python while waiting for a valid solution

@cjbj
Copy link
Member

cjbj commented Oct 19, 2016

The first place to look with these kind of issues is whether the invoking shell has LD_LIBRARY_PATH set correctly. If that's too complex to identify (sudo may clobber the environment, other shells may start with a clean env etc), and you only have the one Oracle client installed on the machine, look at using ldconfig on Linux.

@cjbj
Copy link
Member

cjbj commented Dec 8, 2016

Closing due to lack of progress. I would like to know what the status is. I wonder if its similar to #501 or #534

@cjbj cjbj closed this as completed Dec 8, 2016
@dmcghan
Copy link

dmcghan commented Dec 16, 2016

@oursonvie @AlberH I'm trying to reproduce the issue you ran into but I'm not having any luck. Here's an overview of what I did:

Installed Meteor:

curl https://install.meteor.com/ | sh

Installed the sample app and tested:

meteor create simple-todos
cd simple-todos                             
meteor npm install
meteor

That all worked fine. I stopped the application and then installed oracledb (meteor-node-stubs was already installed):

meteor npm install oracledb --save

Next, I modified server/main.js to import and use the driver (just a connection test):

import { Meteor } from 'meteor/meteor';
import oracledb from 'oracledb';

oracledb.getConnection({
        user: "hr",
        password: "topsecret",
        connectString: "test-db/orcl"
    }).then(conn => {
       console.log('got conenction', conn);
    }).catch(err => {
       console.log('got error', err);
    });

Meteor.startup(() => {
  // code to run on server at startup
}); 

When I started the application again it started fine and connection details were logged to the terminal.

I'm unable to reproduce the error you're seeing. Could either of you create a reproducible test case?

@oursonvie
Copy link
Author

@dmcghan Thanks mate, I tried last week and I can confirm that the error is gone, at least for my case.

@cjbj
Copy link
Member

cjbj commented Dec 19, 2016

@oursonvie thanks for the confirmation. And thanks @dmcghan for chasing it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants