Open merrysabreezy opened 5 years ago
Same problem here, but with react js 16.7.0, and on import.
This isn't actually an issue of this repo. It's an issue related to you using "" instead of '' where you're using it.
I am receiving the exact same error and I'm not using double quotes @coltongit.
return translate('Test', {from: 'en', to: 'fr'}).then(res => {
return res.text;
}).catch(err => {
console.error(err);
});
I am receiving the exact error while using one quote
This library does not work in web page context. See: https://github.com/vitalets/google-translate-api#does-it-work-from-web-page-context
How to solve this problem in react-native?