Getting below error in console while running test for all the react, redux tutorials:
I am using Chrome Version 77.0.3865.120 (Official Build) (64-bit).
Seeing this issue for last 2 days.
Uncaught (in promise) TypeError: Cannot read property 'call' of undefined
at o (VM418 frame-runner.js:1)
at Object.<anonymous> (VM426 vendors~enzyme~enzyme-adapter.js:8)
at Object.<anonymous> (VM426 vendors~enzyme~enzyme-adapter.js:8)
at o (VM418 frame-runner.js:1)
at Object.<anonymous> (VM426 vendors~enzyme~enzyme-adapter.js:8)
at o (VM418 frame-runner.js:1)
at Object.<anonymous> (VM426 vendors~enzyme~enzyme-adapter.js:8)
at o (VM418 frame-runner.js:1)
at Object.<anonymous> (VM426 vendors~enzyme~enzyme-adapter.js:8)
at o (VM418 frame-runner.js:1)
Your code so far
const JSX = <div></div>;
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36.
Iâve been having the same issue. Im using Chrome. I think itâs related to bootstrap?
Uncaught (in promise) TypeError: Cannot read property 'call' of undefined
at o (VM520 frame-runner.js:1)
at Object.<anonymous> (_stream_readable.js:72)
at Object.<anonymous> (vendors~enzyme~enzyme-adapter.js:8)
at o (VM520 frame-runner.js:1)
at Object.<anonymous> (readable-browser.js:1)
at o (VM520 frame-runner.js:1)
at Object.<anonymous> (index.js:28)
at o (VM520 frame-runner.js:1)
at Object.<anonymous> (parser_stream.js:3)
at o (VM520 frame-runner.js:1)
o @ bootstrap:63
(anonymous) @ _stream_readable.js:72
(anonymous) @ vendors~enzyme~enzyme-adapter.js:8
o @ bootstrap:63
(anonymous) @ readable-browser.js:1
o @ bootstrap:63
(anonymous) @ index.js:28
o @ bootstrap:63
(anonymous) @ parser_stream.js:3
o @ bootstrap:63
(anonymous) @ index.js:41
o @ bootstrap:63
(anonymous) @ parse.js:5
(anonymous) @ vendors~enzyme~enzyme-adapter.js:1
o @ bootstrap:63
(anonymous) @ cheerio.js:5
o @ bootstrap:63
(anonymous) @ index.js:5
o @ bootstrap:63
(anonymous) @ ReactWrapper.js:15
(anonymous) @ vendors~enzyme~enzyme-adapter.js:8
o @ bootstrap:63
(anonymous) @ index.js:3
o @ bootstrap:63
o.t @ bootstrap:161
It could be worth clearing your browserâs cache. So, for Chrome, please open the dev console (f12), click on the âNetworkâ tab and then make sure the âDisable cacheâ box is ticked. Once youâve done that, reload the page and try to run the tests again. You should see something like this:
@ojeytonwilliams
The suggestion is not working for me too.
I have tried in multiple computers, windows and mac os and is also facing issue in chrome and firefox browsers.
This seems like a caching issue. I noticed that our webpack config for the client/src/client (workers, frame-runner, etc) do not create a hashed binary. A recent PR seems to have updated the enzyme package. But webpack builds a non-hashed version '[name].js' instead of '[name].[hash].js'
Our CDN caching aggressively caches JavaScript and this is the root cause. As an immediate fix I have invalidated our cache, which means a perf hit to us.
But the real issue is we need to see why webpack is behaving like it is. Can someone please report a GitHub issue for tracebility and add it here in comments.
Just to add Gatsbyâs webpack config is indeed generating the hashed binaries, its our internal webpack config using the webpack-cli wiring that is not playing well.
Since we are on Cloudflare we are able to aggressively cache all JavaScript for fast load times but we need them to be hashed for invalidation. Now, as seen since some of the JS binaries do not have the hash, its most likely breaking the UX.
Anyways the manual invalidation from my end on the CDN should have fixed this for now, but we want to fix the config to avoid doing that again.
Nope never received any errors. Checking the console in chrome though brings up an errorâŚ
Uncaught (in promise) TypeError: Cannot read property 'call' of undefined
at o (VM250 frame-runner.js:1)
at Object.<anonymous> (VM256 vendors~enzyme~enzyme-adapter.js:8)
at Object.<anonymous> (VM256 vendors~enzyme~enzyme-adapter.js:8)
at o (VM250 frame-runner.js:1)
at Object.<anonymous> (VM256 vendors~enzyme~enzyme-adapter.js:8)
at o (VM250 frame-runner.js:1)
at Object.<anonymous> (VM256 vendors~enzyme~enzyme-adapter.js:8)
at o (VM250 frame-runner.js:1)
at Object.<anonymous> (VM256 vendors~enzyme~enzyme-adapter.js:8)
at o (VM250 frame-runner.js:1)`