You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TS4NFDI service portal was initiated last week using the NextJS framework. This is the official React documentation recommendation regarding starting a React project (do not use React Lib alone, create-react-app is deprecated): https://react.dev/learn/start-a-new-react-project
I list the issues I faced here so that it can help us to improve the widgets and installation process:
In the installation process, step 4: NextJS needs at least React version 18.2.0 to work. The version in the documentation is 17.0.2 . same story for react-dom: https://nextjs.org/docs/messages/react-version
Our widgets are using the browser window object that is not accessible on the NextJS server. Therefore, just importing the widgets in a normal way does not work and raises errors on the build.
The widgets need to get importet dynamically on runtime. The issue is that dynamic import causes losing the widget input props type. So we need to define the type based on the used props:
The TS4NFDI service portal was initiated last week using the NextJS framework. This is the official React documentation recommendation regarding starting a React project (do not use React Lib alone, create-react-app is deprecated): https://react.dev/learn/start-a-new-react-project
I list the issues I faced here so that it can help us to improve the widgets and installation process:
I will add to this list if I find something more.
The text was updated successfully, but these errors were encountered: