Skip to content

Usage Example #2

Description

@cjmaria

Hello,

Perhaps I am doing something wrong here, but I needed to do the following to use this library in module mode (when "type": "module" is specified in package.json):

import sdapi from 'sdapi';
sdapi.default.translate('libro');

This contradicts with the usage example in the README:

import sdapi from 'sdapi';
sdapi.translate('libro');

Otherwise, I get the error: TypeError: sdapi.translate is not a function

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions