-
Notifications
You must be signed in to change notification settings - Fork 665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: (0 , _workerized_filter_cities__WEBPACK_IMPORTED_MODULE_2__.getItems) is not a function #115
Comments
OK, this is very weird. I went back to the non-workerized filter-cities import, and was getting an error about how run from useAsync was not receiving a promise. I hadn’t had an issue with the non-workerized one before. In an attempt to troubleshoot, I decided to add some console logging to the |
Well, let's chalk this one up as a fluke I guess 😅 Thanks for reporting back! Hopefully nobody else runs into this. |
Not a fluke, happened for me too. Just like @fitzage I played around with using the non-workerized getCities, console logging here and there to investigate etc and it magically started working. If it's not going to be fixed definitively, could you leave the issue open or write a remark on some more visible spot (like project's README or the exercise's MD file) to make the users aware of this? Thanks in advance, the training is awesome so far! |
@fitzage Huh, I've just in exactly the same problem and |
@kentcdodds kindly reopen this, the issue is still happening |
The same error. The same attempt (console.log(allItems) in filter-cities.js). Worked! |
Seeing the exact same error above as well. Did the |
My guess is there's a bug in |
By adding |
Can confirm that this makes the error go away for me. I just cloned the repo today.
|
Thanks! I'll just stick that in then 👍 |
Yesterday I was having this issue, so pulled this change which seemed to fix it. Today, problem was back even with this fix in. Followed the above tip to console.log |
Pretty sure this is a problem with workerize-loader. I'd anyone wants to dig further and file an issue on that project that would be the most helpful I think. At this point there isn't anything more we can do in this project. |
This is part of what shows up in #113 and then probably #112, except I'm not getting the (apparently now fixed) undefined error, just the
not a function
errors related to the workerization.I still get the rest of the error from #112, and it happens in my exercises for lessons 3 and 4 as well as the final versions. Here is a screenshot from the final for exercise 3, showing nothing rendering, and the console errors.
The text was updated successfully, but these errors were encountered: