Skip to content

Several error by install module #1

Closed

Description

@madeinfree

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

Activity

  1. willyliu commented on Nov 28, 2017

    @willyliu
    Collaborator

    Thanks for your feedback, we are looking into it.

  2. willyliu commented on Nov 28, 2017

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

  3. madeinfree commented on Nov 28, 2017

    @madeinfree
    Author

    Thanks @willyliu, I'll try later 👍

  4. ajhsu commented on Feb 4, 2018

    @ajhsu
    Contributor

    Hi @madeinfree ,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions