uidb-dev / react.cordova

best bundle to webApp mobile- react and cordova
67 stars 9 forks source link

Something weird #39

Open malutanpetronel opened 1 year ago

malutanpetronel commented 1 year ago

Any ideea why this happen:

nvd:~/Documents/reco$ reco init ro.webnou.flom "FLOM"
? Please select project template Reco template

---------reco start to build react-app---------
reco-cli-init-react ERROR : Error: Command failed: npx create-react-app flom

reco-cli-init--install-react.cordova-navigation_controller ERROR : Error: Command failed: npm i cordova_script react.cordova-navigation_controller react-browser-notifications
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: ro.webnou.flom@1.0.0
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR!   react@"^18.2.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0" from cordova_script@1.0.1
npm ERR! node_modules/cordova_script
npm ERR!   cordova_script@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! ~....npm/_logs/2023-05-03T11_15_29_222Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: ~....npm/_logs/2023-05-03T11_15_29_222Z-debug-0.log

add reco scripts to package.json.
malutanpetronel commented 1 year ago

can you please check ? image

malutanpetronel commented 1 year ago

same as issue 35

malutanpetronel commented 1 year ago

cordova platform add android fail too

nvd:~reco/alarm4$ cordova platform add android

Using cordova-fetch for cordova-android@^9.0.0
Failed to fetch platform cordova-android@^9.0.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
CordovaError: Error: npm: Command failed with exit code 1 Error output:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: cordova_script@1.0.0
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   peer react@">=16.x" from @fortawesome/react-fontawesome@0.1.15
npm ERR!   node_modules/@fortawesome/react-fontawesome
npm ERR!     @fortawesome/react-fontawesome@"^0.1.14" from adminlte-2-react@0.1.30
npm ERR!     node_modules/adminlte-2-react
npm ERR!       adminlte-2-react@"^0.1.30" from the root project
npm ERR!   peer react@"*" from @testing-library/react@11.2.7
npm ERR!   node_modules/@testing-library/react
npm ERR!     @testing-library/react@"^11.1.0" from the root project
npm ERR!   21 more (mini-create-react-context, prop-types-extra, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0" from cordova_script@1.0.0
npm ERR! node_modules/cordova_script
npm ERR!   cordova_script@"^1.0.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: react@16.14.0
npm ERR! node_modules/react
npm ERR!   peer react@"^16.0.0" from cordova_script@1.0.0
npm ERR!   node_modules/cordova_script
npm ERR!     cordova_script@"^1.0.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! ....npm/_logs/2023-05-03T12_58_16_284Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: ....npm/_logs/2023-05-03T12_58_16_284Z-debug-0.log
orchuban commented 1 year ago

try npm i --legacy-peer-deps