I just started working on this new React app.
It was using <Suspense />
element in the component but I removed it. Then application is crashed with above error.
Is there any easy fix without know too much about <Suspense />
?
You have 2 options:
Without Using suspense, you can configure that i18n.js like this:
i18n .use(XHR) .use(LanguageDetector) .init({ react: { useSuspense: false // <---- this will do the magic } });
Using Suspense, for example:
<Suspense fallback={<div>Loading... </div>}> <App /> </Suspense>
In order to fix this without putting Suspense
back in, you would need to get rid of usages of React.lazy
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With