Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Importing in ES6 is broken #14

Closed
ekryski opened this issue Nov 29, 2015 · 2 comments
Closed

Importing in ES6 is broken #14

ekryski opened this issue Nov 29, 2015 · 2 comments
Labels

Comments

@ekryski
Copy link
Member

ekryski commented Nov 29, 2015

import feathers from 'feathers-client';

const app = feathers().configure(feathers.primus({
  transformer: 'sockjs',
  pathname: '/primus',
}));

const locationService = app.service('location');

Errors with Uncaught TypeError: _feathersClient2.default.primus is not a function.

This is most likely related to how we were previously compiling the ES6 modules without the babel module exports shim.

@ekryski ekryski added the bug label Nov 29, 2015
@daffl
Copy link
Member

daffl commented Nov 29, 2015

Do you have latest v0.3.3? I think that's what @marshallswain fixed in #13

@daffl
Copy link
Member

daffl commented Nov 29, 2015

I just double checked that this is fixed in 0.3.3.

@daffl daffl closed this as completed Nov 29, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants