Skip to content

v3.3.0 Error in the browser: Uncaught ReferenceError: process is not defined #274

@shashank1010

Description

@shashank1010

What is the current behavior?

Installing v3.3.0 results in the error Uncaught ReferenceError: process is not defined

What's happening that seems wrong?

It seems that the dist bundle is not correct. dist bundles should have references to process object

Steps to reproduce

  1. Install deepgram-sdk and use it in a browser application
  2. Run the application
  3. Visit the webpage

Expected behavior

  1. The application should simply run
  2. And you can use the deepgram client.

Please tell us about your environment

  • Operating System/Version: MacOS
  • Language: TypeScript
  • Browser: Chrome

Other information

Reverting to v3.2.0 resolves the issue.

Anything else we should know? (e.g. detailed explanation, stack-traces, related issues, suggestions how to fix, links for us to have context, eg. stack overflow, codepen, etc)

  1. deepgram v3.2 Example: https://stackblitz.com/edit/vitejs-vite-fhctlf?file=package.json (This works fine)
  2. deepgram v3.3 Example: https://stackblitz.com/edit/vitejs-vite-zg6vpu?file=package.json (This fails)
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions