-
Notifications
You must be signed in to change notification settings - Fork 221
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
Property 'TextEncoder' doesn't exist #199
Comments
I am facing the same issue too |
same error |
@syuanlj same here, but can you provide more info regarding which version you are using. also the output of |
This solution worked for me:
this is influenced by: facebook/hermes#948 (comment) |
created a pull request. |
|
This solution worked for me: Navigate to node_module/qrcode/lib/core/byte-data.js file.
function stringToUtf8Uint8Array(str) {
const utf8 = encodeURIComponent(str)
.replace(/%([0-9A-F]{2})/g, (_, p1) => String.fromCharCode('utf-8'));
const arr = new Uint8Array(utf8.length);
for (let i = 0; i < utf8.length; i++) {
arr[i] = utf8.charCodeAt(i);
}
return arr;
} |
this works for me add transformer on metro: const { getDefaultConfig, mergeConfig } = require("@react-native/metro-config"); const defaultConfig = getDefaultConfig(__dirname); const config = { module.exports = mergeConfig(defaultConfig, config); |
The text was updated successfully, but these errors were encountered: