toniebox-reverse-engineering / teddycloud

teddyCloud is an open source server replacement for the Boxine Cloud
https://toniebox-reverse-engineering.github.io/docs/tools/teddycloud/
GNU General Public License v2.0
404 stars 31 forks source link

react-dom.development.js can't be loaded. Old UI fails loading #153

Closed CTeipen closed 5 months ago

CTeipen commented 5 months ago

image

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.

CTeipen commented 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.

SciLor commented 5 months ago

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

CTeipen commented 5 months ago

react-dom.development.js.txt

Kuchen404 commented 5 months ago

react-dom.development.zip

This is what my Browser had cached. I hope this helps

CTeipen commented 5 months ago

react.development.js.txt

CTeipen commented 5 months ago

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"

SciLor commented 5 months ago

Thank you for your support. I added the libs directly to teddyCloud and it is working again in the develop tag.