You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my case, The problem is that when encodeUtf8(data) is called in /lib/core/byte-data.js (inside the qrcode folder) will pop this error message.
I guess there are somethings changed to make the bahaviour of require state in line 1 have changed.
and the encodeUtf8 is expected to be a function, but now it is a object {default:function}. therefore it causes that error in my code. Hope this could provide any useful for speeding up the troubleshoot.
I get the above error when trying to use the QRCode React Function.
I imported it like this:
import QRCode from 'react-native-qrcode-svg';
and used it like this:
When running on ios simulator i get the following error: TypeError: Object is not a function
The dependencies list:
"dependencies": {
"react": "18.2.0",
"react-native": "0.71.6",
"react-native-qrcode-svg": "^6.2.0",
"react-native-svg": "^13.9.0",
},
Does anyone have an idea why this is happening?
The text was updated successfully, but these errors were encountered: