After updating packages framework7
and framework7-react
to 7.x
version my App can’t start properly and shows error:
Uncaught TypeError: Cannot read properties of undefined (reading 'create')
at actions.js:100:27
at f7ready (f7.js:80:1)
at onMount (actions.js:99:12)
at actions.js:121:1
at commitHookEffectListMount (react-dom.development.js:20573:1)
at commitLifeCycles (react-dom.development.js:20634:1)
at commitLayoutEffects (react-dom.development.js:23426:1)
at HTMLUnknownElement.callCallback (react-dom.development.js:3945:1)
at Object.invokeGuardedCallbackDev (react-dom.development.js:3994:1)
at invokeGuardedCallback (react-dom.development.js:4056:1)
Also before migration I use this import
import Framework7 from "framework7/bundle";
But now TypeScript shows error:
Cannot find module 'framework7/bundle' or its corresponding type declarations.ts(2307)
So I changed this to
import Framework7 from "framework7";
May this problem be caused because of my custom webpack configuration?