Skip to content

ES6 import with Browserify #5

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

Closed
mwpastore opened this issue Sep 24, 2015 · 7 comments
Closed

ES6 import with Browserify #5

mwpastore opened this issue Sep 24, 2015 · 7 comments

Comments

@mwpastore
Copy link

I'm having a heck of a time trying to import jsonapi-datastore into my Ember application using Browserify. Can someone help me with the syntax? new JsonApiDataStore() yields the following when I try:

import { JsonApiDataStore } from 'npm:jsonapi-datastore';

Gives me npm_jsonapi_datastore.JsonApiDataStore is not a function, and:

import JsonApiDataStore from 'npm:jsonapi-datastore';

Gives me JsonApiDataStore.default is not a function, and:

import * as JsonApiDataStore from 'npm:jsonapi-datastore';

Gives me JsonApiDataStore is not a function.

Thanks in advance for any suggestions...

@beauby
Copy link
Owner

beauby commented Sep 24, 2015

Hi @mwpastore, the situation should become much easier once #4 gets merged (which will be really soon).

@mwpastore
Copy link
Author

Great! Thank you!

@beauby
Copy link
Owner

beauby commented Dec 6, 2015

@mwpastore This should be fixed now that #4 has been merged. Could you confirm?

@krainboltgreene
Copy link

Nevermind!

The top version works.

@beauby
Copy link
Owner

beauby commented Mar 10, 2016

Glad to hear that! May I close the issue?

@krainboltgreene
Copy link

Yes! Well at least for me.

@beauby
Copy link
Owner

beauby commented Mar 10, 2016

Great, closing then, feel free to reopen if needed.

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