Skip to content

ES6 import with Browserify #5

Closed
@mwpastore

Description

@mwpastore

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions