docz: Object(...) is not a function
Bug Report
After update from 0.8.0 to 0.9.0 and still present in the latest 0.11.0
Open localhost and get the trace on the screen
Stack trace
in BrowserRouter (created by DoczTheme)
in DataServer (created by DoczTheme)
in CopyOnWriteStoreProvider (created by DoczTheme)
in ErrorBoundary (created by DoczTheme)
in DoczTheme (at root.jsx:7)
in Root (created by HotExportedRoot)
in AppContainer (created by HotExportedRoot)
in HotExportedRoot (at index.jsx:17)
The trace in the console
BrowserRouter.js?a051:29 Uncaught TypeError: Object(...) is not a function
at new BrowserRouter (BrowserRouter.js?a051:29)
at new BrowserRouter (eval at <anonymous> (react-hot-loader.development.js?0a98:1761), <anonymous>:5:7)
at constructClassInstance (react-dom.development.js?61bb:11448)
at updateClassComponent (react-dom.development.js?61bb:13145)
at beginWork (react-dom.development.js?61bb:13825)
at performUnitOfWork (react-dom.development.js?61bb:15864)
at workLoop (react-dom.development.js?61bb:15903)
at HTMLUnknownElement.callCallback (react-dom.development.js?61bb:100)
at Object.invokeGuardedCallbackDev (react-dom.development.js?61bb:138)
at invokeGuardedCallback (react-dom.development.js?61bb:187)
doczrc.js
export default {
src: './app',
};
Readme.mdx
# Hello
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 7
- Comments: 16 (6 by maintainers)
Using version @0.13.5:
package.json:
@nicholasess Tried to wipe node_modules and reinstalled completely, removed
.docz
and none of it helped in my case. The error rises in dev mode not in production as others mentioned before. Seems some kind of modules incompatibility.Just an update, deleting my
package-lock.json
andnpm install
ing fixes my production build issue now. I figure the dependencies work together again 😄