Object(...) is not a function
See original GitHub issueBug 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
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:16 (6 by maintainers)
Top Results From Across the Web
JavaScript "Uncaught TypeError: object is not a function ...
Try to have the function body before the function call in your JavaScript file.
Read more >TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >TypeError: Object(...) is not a function · Issue #14484 - GitHub
What is the current behaviour? I have created react functional component and implement state full logic using useState method but it throws an ......
Read more >How to Handle JavaScript Uncaught TypeError: “x” is Not a ...
The Javascript error TypeError: "x" is not a function occurs when there is an attempt to call a function on a value or...
Read more >JavaScript: Uncaught TypeError: n is not a function
This error occurs if you try to execute a function that is not initialized or is not initialized correctly. This means that the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.