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

sharedClass instanceof SharedClass returns false #138

Closed
BerkeleyTrue opened this issue Nov 20, 2014 · 4 comments
Closed

sharedClass instanceof SharedClass returns false #138

BerkeleyTrue opened this issue Nov 20, 2014 · 4 comments

Comments

@BerkeleyTrue
Copy link
Contributor

Not sure if this is a loopback-connector-remote issue as this pertains to scripts within strong-remoting, so I will post here too.

Using loopback-connector-remote 1.0.2, loopback 2.8.0.

Bundling (with browserify) loopback and serving to client. On initiation, my app crashes with Uncaught AssertionError: false == true, not a very helpful error message.

After some investigation, seems like this statement is the cause. Not sure what the solution would be since it seems like sharedClass object is an instance of SharedClass in this case but fails the test.

sharedclassbug

@raymondfeng
Copy link
Member

Do you have multiple strong-remoting modules loaded in the application dependency graph?

Thanks,


Raymond Feng
Co-Founder and Architect @ StrongLoop, Inc.

StrongLoop http://strongloop.com/ makes it easy to develop APIs http://strongloop.com/mobile-application-development/loopback/ in Node, plus get DevOps capabilities http://strongloop.com/node-js-performance/strongops/ like monitoring, debugging and clustering.

On Nov 20, 2014, at 9:44 AM, Berkeley Martinez [email protected] wrote:

Not sure if this is a loopback-connector-remote issue as this pertains to scripts within strong-remoting, so I will post here too.

Using loopback-connector-remote 1.0.2, loopback 2.8.0.

Bundling loopback and serving to client. On initiation, my app crashes with Uncaught AssertionError: false == true, not a very helpful error message.

After some investigation, seems like this statement is the cause. Not sure what the solution would be since it seems like sharedClass object is an instance of SharedClass in this case but fails the test.

https://cloud.githubusercontent.com/assets/6775919/5129560/4f41bffc-7098-11e4-944f-d809c041d0d9.gif

Reply to this email directly or view it on GitHub #138.

@BerkeleyTrue
Copy link
Contributor Author

Where would I find this graph?

@BerkeleyTrue
Copy link
Contributor Author

Wiping my node_modules dir, remove loopback-connector-remote from my package json, and npm installing seemed to fix the issue.

@bajtos
Copy link
Member

bajtos commented Nov 28, 2014

For the record, this was caused by loopback-connector-remote, see strongloop/loopback-connector-remote#9

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

No branches or pull requests

3 participants