leozdgao / react-async-script-loader

A decorator for script lazy loading on react component
MIT License
258 stars 55 forks source link

Mismatching with react 15.6.1 #34

Open medmes opened 5 years ago

medmes commented 5 years ago

Hey guys,

I have an issue related to versioninig in CentosRHEL7, I use react 15.6.1 and react-google-recaptcha which relay on react-async-script-loader

here's my configuration. "dependencies": { "react": "^15.6.1", "react-awesome-modal": "2.0.3", "react-calendar": "^2.14.0", "react-dom": "^15.6.1", "react-google-recaptcha": "^0.13.0", "react-infinite-calendar": "^2.3.1", "react-moment": "^0.7.0", "react-redux": "^5.0.5", "react-router": "^3.0.0", "react-router-dom": "4.2.2", "react-time-picker": "^2.3.2", "redbox-react": "^1.3.6", "redux": "^3.6.0", "redux-immutable": "4.0.0", "redux-thunk": "^2.2.0", "reselect": "3.0.1", "superagent": "^2.0.0", "whatwg-fetch": "^2.0.3" } // and other dependencies.. > npm install npm WARN react-async-script@1.0.0 requires a peer of react@>=16.4.1 but none is installed. You must install peer dependencies yourself.

By the way, I do not have this issue on Windows! How can I force to download the 0.11.1 instead of 1.0.0 which is very compatible with react 15.6.1 compared to 16.

Thanks!

elhajouis commented 5 years ago

Hello, We have the same issue, the dependencie react-google-recaptcha needs to download "react-async-script", on Windows it download the "react-async-script" version 0.10.0 or 0.11.1 (compatible with react 15.) but never higher => build OK delivrey OK. However on linux, it always download the "react-async-script" version 1.0.0 which (not compatible with react 15.) => build OK with warning => delivrey KO (errors on the browser) How can we bypass this problem without investing on a react upgrade?

Regards.