Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run on React.js #34

Closed
muhAzis opened this issue Jun 7, 2023 · 2 comments
Closed

Can't run on React.js #34

muhAzis opened this issue Jun 7, 2023 · 2 comments

Comments

@muhAzis
Copy link

muhAzis commented Jun 7, 2023

The error:
TypeError: google_translate_api_x__WEBPACK_IMPORTED_MODULE_1__ is not a function

I've tried using this library on vanilla js and it works just fine. But when I tried it on React it keeps getting error like in the above even I use the simpliest method to use this library. Is there any settings that I have to apply first in my React project before using this library?
Sorry for my english and I'm new to React and JavaScript, so it will be so kind of you if you can give me an assistance.

Btw, thanks for providing this library

@AidanWelch
Copy link
Owner

This library isn't compatible with web react, generally, because of CORS. But that shouldn't make this error. What version of this package are you using? Also, what version of node are you using? And, can you post your babel configuration?

@AidanWelch
Copy link
Owner

Inactive

@AidanWelch AidanWelch closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants