cerebral/overmind

[BUG] TypeError with webpack 5

tataetae opened this issue · 1 comments

I got this error with a project created by https://github.com/electron-react-boilerplate/electron-react-boilerplate (version 3.x) Could this be overmind and overmind-react's bug? It seems like TypeScript export or typings that are picked up by webpack aren't correct.
`
TypeError
(0 , overmind__WEBPACK_IMPORTED_MODULE_2__.createOvermind) is not a function
Call Stack
 ./src/renderer/index.tsx
  renderer.dev.js:6199:72
 Module.options.factory
  renderer.dev.js:115283:31
webpack_require
  renderer.dev.js:114752:33
 undefined
  renderer.dev.js:115844:11
 undefined
  renderer.dev.js:115848:12
 webpackUniversalModuleDefinition
  renderer.dev.js:7:11
 undefined
  renderer.dev.js:10:3
× Close

`

Should work now as we upgraded to Webpack 5 in #587.
Please reopen if there's still a problem.