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

problem exporting module #4

Open
ariutta opened this issue Jul 22, 2014 · 0 comments
Open

problem exporting module #4

ariutta opened this issue Jul 22, 2014 · 0 comments
Labels

Comments

@ariutta
Copy link
Owner

ariutta commented Jul 22, 2014

As of v1.0.2, we cannot use this:

var crossPlatformShapes = require('cross-platform-shapes');
var crossPlatformShapesInstance = crossPlatformShapes.getInstance({});

instead we need to use this:

require('cross-platform-shapes');
var crossPlatformShapesInstance = crossPlatformShapes.getInstance({});

The reason is probably due to this code. I tried to base it on how lodash and underscore do it, but they work with the first option, whereas my code does not.

What needs to change to make the first option work?

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

No branches or pull requests

1 participant