Closed CTeipen closed 5 months ago
https://react.dev/reference/react-dom#resource-preloading-apis
Here is a mentioning of the deprecation. I'm not sure of those listed are related to the ones being used by TeddyCloud.
We need a copy of
<script src="https://unpkg.com/react@16/umd/react.development.js"
integrity="sha512-LVEAOXGRRqHiT+4awmHwL5emvXg+BTr8cC/eDF0pLuwEySgG55Pt2gfN2X6BenCsocmb2kKJ7QJVppWftFpcoA=="
crossorigin="anonymous"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"
integrity="sha512-MizB1VlWh4kvP5l+aBc2umqPc3V2bApU+SSqi70PZbhkLTXtJuIHXEY2LDkwqyX5yh+IzqTCP0Y0yI698i8oTA=="
crossorigin="anonymous"></script>
to integrate it directly into teddyCloud
This is what my Browser had cached. I hope this helps
i put the files in the library folder of the www folder. With the lines below it works again.
<script src="library/react.development.js"></script>
<script src="library/react-dom.development.js"></script>
The console logs a warning about the deprecate state of ReactDOM.render "react-dom.development.js:73 Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"
Thank you for your support. I added the libs directly to teddyCloud and it is working again in the develop tag.
React DOM CDN isn’t reachable. Old TeddyCloud UI does not load.
I read that this source isn't supported in the near future. Maybe it should be cached on a server or stored in the sources of TeddyCloud. Just some thoughts of mine.