score:5

Accepted answer

Suspense and lazy are reachable in the following versions :

"react": "^16.6.3"
"react-dom": "^16.6.3"

This error relates to the react-dom which was not upgraded correctly!

score:1

Here is a very simple example that should work using similar dependencies.

Edit lazy-header

I would recommend ensuring that import('./_header') resolves to the correct module, to check again that there is a default export and that it is a React component type. Additionally, make sure { fallback } for the suspense component is a component type as well.


Related Query

More Query from same tag