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

Not able to use ES2015 import #4

Open
ghost opened this issue Nov 21, 2017 · 1 comment
Open

Not able to use ES2015 import #4

ghost opened this issue Nov 21, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 21, 2017

ES2015 imports don't seem to be (properly) supported, if they ever were. When I require the library like this:

const Autobahn = require('[your path to node_modules]/autobahn-react/dist/AutobahnReact.js');

it works, but when I do it with a proper ES2015 import, I'm getting this rather obscure error:

./node_modules/bindings/bindings.js
81:22-40 Critical dependency: the request of a dependency is an expression

./node_modules/bindings/bindings.js
81:43-53 Critical dependency: the request of a dependency is an expression

Needless to say, I'd like to be able to use proper ES2015 imports.

Since the last change was two years ago and issues don't seem to be taken seriously either, I reckon this library isn't actively maintained anymore, even though it's still relevant.

Does anybody know a good alternative?

@ghost
Copy link
Author

ghost commented Nov 29, 2017

Try KSDaemon/wampy.js and KSDaemon/wampy-cra for a much smoother and less buggy experience. Both projects are actively maintained, have better documentation and support chaining.

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

0 participants