deepgram / deepgram-js-sdk

Official JavaScript SDK for Deepgram's automated speech recognition APIs.
https://developers.deepgram.com
MIT License
138 stars 51 forks source link

Importing @deepgram/sdk/browser is throwing: SyntaxError: Unexpected token 'export' #89

Closed Limeslices closed 1 year ago

Limeslices commented 1 year ago

What is the current behavior?

When trying to do the following

import { Deepgram } from '@deepgram/sdk/browser'

I run into this error

SyntaxError: Unexpected token 'export'

This is running on a NextJs localhost environment.

IvanCoronado commented 1 year ago

I have the same error. The browser version is not exported...

It looks like the doc is outdated.

briancbarrow commented 1 year ago

@Limeslices @IvanCoronado what version of the SDK were you using? Sorry for the late response. I had an example of this syntax working in v1.11.0 and still in v1.18.0.

Let me know if you are still running into issues.

lukeocodes commented 1 year ago

Closing due to the age and no followups. Please use the latest version and raise a new issue if this continues to be a problem.