Skip to content

Instantly share code, notes, and snippets.

@jimklo
Created Mar 21, 2020
Embed
What would you like to do?
Initial electron-react-boilerplate `yarn dev` startup error
HMR] Waiting for update signal from WDS...
VM70:2 Uncaught TypeError: Cannot read property 'state' of undefined
at unliftState (<anonymous>:2:31200)
at Object.getState (<anonymous>:2:31267)
at Provider.js:19
at mountMemo (react-dom.development.js:16832)
at Object.useMemo (react-dom.development.js:17151)
at useMemo (react.development.js:1643)
at wrappedHook (react-hot-loader.development.js:2758)
at Provider (Provider.js:18)
at renderWithHooks (react-dom.development.js:16259)
at mountIndeterminateComponent (react-dom.development.js:18793)
react-dom.development.js:21842 The above error occurred in the <Provider> component:
in Provider (at Root.tsx:15)
in Root (created by HotExportedRoot)
in AppContainer (created by HotExportedRoot)
in HotExportedRoot
in AppContainer (at app/index.tsx:14)
React will try to recreate this component tree from scratch using the error boundary you provided, AppContainer.
react-hot-loader.development.js:294 TypeError: Cannot read property 'state' of undefined
at unliftState (<anonymous>:2:31200)
at Object.getState (<anonymous>:2:31267)
at Provider.js:19
at mountMemo (react-dom.development.js:16832)
at Object.useMemo (react-dom.development.js:17151)
at useMemo (react.development.js:1643)
at wrappedHook (react-hot-loader.development.js:2758)
at Provider (Provider.js:18)
at renderWithHooks (react-dom.development.js:16259)
at mountIndeterminateComponent (react-dom.development.js:18793)
react-hot-loader.development.js:2406 Uncaught TypeError: Cannot read property 'state' of undefined
at unliftState (<anonymous>:2:31200)
at Object.getState (<anonymous>:2:31267)
at Provider.js:19
at mountMemo (react-dom.development.js:16832)
at Object.useMemo (react-dom.development.js:17151)
at useMemo (react.development.js:1643)
at wrappedHook (react-hot-loader.development.js:2758)
at Provider (Provider.js:18)
at renderWithHooks (react-dom.development.js:16259)
at mountIndeterminateComponent (react-dom.development.js:18793)
react-dom.development.js:21842 The above error occurred in the <AppContainer> component:
in AppContainer (created by HotExportedRoot)
in HotExportedRoot
in AppContainer (at app/index.tsx:14)
React will try to recreate this component tree from scratch using the error boundary you provided, AppContainer.
react-hot-loader.development.js:294 TypeError: Cannot read property 'state' of undefined
at unliftState (<anonymous>:2:31200)
at Object.getState (<anonymous>:2:31267)
at Provider.js:19
at mountMemo (react-dom.development.js:16832)
at Object.useMemo (react-dom.development.js:17151)
at useMemo (react.development.js:1643)
at wrappedHook (react-hot-loader.development.js:2758)
at Provider (Provider.js:18)
at renderWithHooks (react-dom.development.js:16259)
at mountIndeterminateComponent (react-dom.development.js:18793)
react-hot-loader.development.js:2406 Uncaught TypeError: Cannot read property 'state' of undefined
at unliftState (<anonymous>:2:31200)
at Object.getState (<anonymous>:2:31267)
at Provider.js:19
at mountMemo (react-dom.development.js:16832)
at Object.useMemo (react-dom.development.js:17151)
at useMemo (react.development.js:1643)
at wrappedHook (react-hot-loader.development.js:2758)
at Provider (Provider.js:18)
at renderWithHooks (react-dom.development.js:16259)
at mountIndeterminateComponent (react-dom.development.js:18793)
react-dom.development.js:21842 The above error occurred in the <AppContainer> component:
in AppContainer (at app/index.tsx:14)
Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
react-dom.development.js:12213 Uncaught TypeError: Cannot read property 'state' of undefined
at unliftState (<anonymous>:2:31200)
at Object.getState (<anonymous>:2:31267)
at Provider.js:19
at mountMemo (react-dom.development.js:16832)
at Object.useMemo (react-dom.development.js:17151)
at useMemo (react.development.js:1643)
at wrappedHook (react-hot-loader.development.js:2758)
at Provider (Provider.js:18)
at renderWithHooks (react-dom.development.js:16259)
at mountIndeterminateComponent (react-dom.development.js:18793)
security-warnings.ts:179 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
Policy set or a policy with "unsafe-eval" enabled. This exposes users of
this app to unnecessary security risks.
For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.
client:48 [WDS] Hot Module Replacement enabled.
client:52 [WDS] Live Reloading enabled.
client?8f77:48 [WDS] Hot Module Replacement enabled.
client?8f77:52 [WDS] Live Reloading enabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment