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

How to use this in client side code #1

Open
danjenkins opened this issue Aug 15, 2016 · 1 comment
Open

How to use this in client side code #1

danjenkins opened this issue Aug 15, 2016 · 1 comment

Comments

@danjenkins
Copy link

I've been trying to use this in some client side code powered by babel/webpack but I'm missing something or theres something missing in the lib - I'm getting a Syntax Error on the import of the generic midi controller... I think I'm being an idiot but can't see what I'm doing wrong...

@chadxz
Copy link

chadxz commented Aug 18, 2016

I looked at this with Dan and we found that it was due to webpack being configured to not process the node_modules directory of his node.js app, along with webpack discovering the "browser" entrypoint in the package.json of this package and pulling in the es6 version of the library instead of the compiled version distributed in the "main" entrypoint.

Seems like it would be good to just not have the es6 version exposed at all when published to npm. But that's just my $0.02

The "generic-midi-controller" library also has this issue.

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

2 participants