Skip to content

Uncaught TypeError: Class extends value [object Object] is not a constructor or null in Electron with @iamtraction/google-translate #53

@chrismichaelps

Description

@chrismichaelps

Actual Behavior:

The error prevents the application from working properly in Electron. Specifically, it relates to issues with how undici is utilized.

  • node version: v18.18.0

package.json

"@iamtraction/google-translate": "^2.0.1",
"react": "^18.3.1",

Error:

@iamtraction_google-translate.js?v=7aeeaed6:7216 Uncaught TypeError: Class extends value [object Object] is not a constructor or null
    at node_modules/undici/lib/dispatcher.js (@iamtraction_google-translate.js?v=7aeeaed6:7216:22)
    at __require (chunk-WOOG5QLI.js?v=0e4535ab:12:50)
    at node_modules/undici/lib/dispatcher-base.js (@iamtraction_google-translate.js?v=7aeeaed6:7235:22)
    at __require (chunk-WOOG5QLI.js?v=0e4535ab:12:50)
    at node_modules/undici/lib/client.js (@iamtraction_google-translate.js?v=7aeeaed6:8114:26)
    at __require (chunk-WOOG5QLI.js?v=0e4535ab:12:50)
    at node_modules/undici/index.js (@iamtraction_google-translate.js?v=7aeeaed6:19573:18)
    at __require (chunk-WOOG5QLI.js?v=0e4535ab:12:50)
    at node_modules/@iamtraction/google-translate/src/index.js (@iamtraction_google-translate.js?v=7aeeaed6:19920:23)
    at __require (chunk-WOOG5QLI.js?v=0e4535ab:12:50)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions