question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'call' of undefined

See original GitHub issue

Bug 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.

image

image

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:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:30 (14 by maintainers)

github_iconTop GitHub Comments

4reactions
pauldcomanicicommented, Apr 15, 2021

I also noticed this issue, when using ModuleFederationPlugin and some specific settings for the splitChunks.

splitChunks.chunks -> should not be set or set to async (default) , anything else will cause the error mentioned splitChunks.maxSize -> should not be set, if this is set will cause the error mentioned

and It reproduces only when loading the remoteEntry on the host app. The main app does not appear to be affected.

4reactions
csvancommented, Mar 29, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found