Open GunnarAK opened 1 year ago
+1 for this issue
Up
+1 having the same error
+1 having some issue
@awesomejerry I wanted to have a look at upgrading this myself, but I got stuck with installing the example app locally.
I'm using node 14 (via nvm).
Installing root package.json first, then example package.json. Via npm install
The Metro packager is not able to locate the react-native-qrcode-svg
package as it is a symbolic link in the app's node_modules. And as far as I'm aware after 5 years and counting Metro still does not support sym links https://github.com/facebook/metro/issues/1
So how do you go about this? There's no documentation inside the example project which would be of help here unfortunately.
Error example:
iOS Bundling failed 220ms
Unable to resolve module react-native-qrcode-svg from /Users/gunnark/Repositories/personal/react-native-qrcode-svg/example/App.js: react-native-qrcode-svg could not be found within the project or in these directories:
node_modules
../node_modules
Also, why does the example app have both a yarn.lock & package-lock.json file?
+1 also experiencing this issue
+1 having same error
+1 same here
+1 same issue
+1
Until #166 is merged, you can use the overrides field on your package.json if npm is >=8.3.0
{
...
"dependencies": {
...
"react-native-qrcode-svg": "^6.1.2",
"react-native-svg": "^13.6.0",
...
},
"overrides": {
"react-native-qrcode-svg": {
"react-native-svg": "$react-native-svg"
}
},
...
}
v13 dropped a month ago