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

Several error by install module #1

Closed
madeinfree opened this issue Nov 17, 2017 · 4 comments
Closed

Several error by install module #1

madeinfree opened this issue Nov 17, 2017 · 4 comments

Comments

@madeinfree
Copy link

Thanks for KKBOX OpenAPI.

I run into some problem when I use it to nodejs server, but I don't know this is the problem or not thus I open a issue to figure out them~

  • I following the README to import 'kkbox-javascript-developer-sdk' and get the error.
import { Auth } from 'kkbox-javascript-developer-sdk' // Cannot find module 'kkbox-javascript-developer-sdk';
//change into
import { Auth } from '@kkboxorg/kkbox-javascript-developer-sdk'; // work
  • I use nodejs require but the SDK doesn't compile in npm module cause the Unexpected token export error, may it be possible compile to npm module with es5 ?
const { Auth } = require('@kkboxorg/kkbox-javascript-developer-sdk'); // Unexpected token export
@willyliu
Copy link
Collaborator

Thanks for your feedback, we are looking into it.

@willyliu
Copy link
Collaborator

Alright, we have fixed it in the latest version, please try again. Previously we published the es6 version of sdk and hence you cannot require it in node, now we have changed to correctly publish es5 version of sdk.

@madeinfree
Copy link
Author

Thanks @willyliu, I'll try later 👍

@ajhsu
Copy link
Contributor

ajhsu commented Feb 4, 2018

Hi @madeinfree ,

Is everything works fine? :)
I'm going to close the issue; If you have further question, please let us know :)

@ajhsu ajhsu closed this as completed Feb 4, 2018
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