Cannot read property 'call' of undefined
See original GitHub issueBug report
What is the current behavior?
There’s an issue report https://github.com/pmmmwh/react-refresh-webpack-plugin/issues/328 on react-refresh-webpack-plugin
, and I happened to encounter it as well.
At fist glance it seems to be a bug over there, however, it might be a bug in webpack after I debug with a breakpoint.
Hence I’m reposting it here.
If the current behavior is a bug, please provide steps to reproduce.
See https://github.com/pmmmwh/react-refresh-webpack-plugin/issues/328#issuecomment-804797961 for the steps.
What is the expected behavior?
No error should happen.
Other relevant information:
webpack version:
Node.js version:
Operating System:
Additional tools:
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:30 (14 by maintainers)
Top Results From Across the Web
Uncaught TypeError: Cannot read property 'call' of undefined ...
One of the solution was to use concatenateModules: false apparently, but to no avail, it didn't solve my issue. So I tried with...
Read more >Uncaught TypeError: Cannot read property 'call' of undefined
I'm having an issue with webpack where if I stop watching and restart, it will build just fine, but if I edit a...
Read more >Uncaught TypeError: Cannot read property 'call' of ... - Laracasts
You need to show us your code that is causing the error. It's pointing to my vue component, I excluded it from app....
Read more >Cannot read property 'call' of undefined" error occurs when an ...
HtmlEditor - The " __webpack_require__ => Uncaught TypeError: Cannot read property 'call' of undefined" error occurs when an application with ...
Read more >error in console TypeError: Cannot read property 'call' of ...
TypeError : Cannot read property 'call' of undefined - the code is. the file linked to the message is a theme bundle file...
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
I also noticed this issue, when using
ModuleFederationPlugin
and some specific settings for thesplitChunks
.splitChunks.chunks
-> should not be set or set toasync
(default) , anything else will cause the error mentionedsplitChunks.maxSize
-> should not be set, if this is set will cause the error mentionedand It reproduces only when loading the remoteEntry on the host app. The main app does not appear to be affected.
Seeing this error in conjunction with Module Federation, though it most likely isn’t due to that alone.
Strange thing is I don’t recally seeing this on versions earlier than 5.27, but it is now constant.