[BUG] Crash in proxyfyEffects
See original GitHub issueHey Christian, hope you’re doing good 😃 Ran into this head-scratcher today:
Unhandled Rejection (TypeError): Cannot read property 'Symbol(ORIGIN_TARGET)' of undefined
apply
src/proxyfyEffects.ts:25
22 | const name = path.split('.')
23 | const method = name.pop()
24 | return cb({
> 25 | func: target.bind(thisArg[ORIGIN_TARGET]),
| ^ 26 | effectId,
27 | name: name.join('.'),
28 | method,
View compiled
addUser
src/overmind/actions.ts:9
6 | }) => {
7 | const userName = prompt('Brukernavn')
8 | if (userName) {
> 9 | const id = await saveUser({ userName })
10 | users[id] = { id, userName }
11 | }
12 | }
View compiled
addUser
src/index.ts:592
▶ 22 stack frames were collapsed.
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error. Click the 'X' or hit ESC to dismiss this message.
Thought at first it had something to with using IndexedDB, but the crash persists after I removed it. Also tested the latest Overmind version in my Gaver app, and that one crashes too.
Minimum reproducible repo: https://github.com/geirsagberg/auth-man.git
just yarn
and try to add a user, it crashes 😦
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Reporting a Crash Bug - The Chromium Projects
Go to chrome://crashes and see if your crash is listed. If so, copy and paste the crash ID into your bug report. Otherwise,...
Read more >Crash Factors in Intersection-Related Crashes: An On-Scene ...
intersection-related crashes were too fast for conditions/aggressive driving (22.8%), followed by driver performance error (overcompensation, poor ...
Read more >Firebase Crashlytics | A powerful Android and iOS crash ...
Resolve bugs quickly. Firebase Crashlytics, a real time crash reporting tool, helps you prioritize and fix your most pervasive crashes based on the...
Read more >Improper Driving and Road Rage - Injury Facts
The interaction of these factors sets up the series of events that results in a crash. It is rare (if ever) that driver...
Read more >Finding Crash-Consistency Bugs with Bounded Black-Box ...
Finding Crash-Consistency Bugs with Bounded Black-Box Crash Testing. Authors: Jayashree Mohan, Ashlie Martinez, Soujanya Ponnapalli, and Pandian Raju, ...
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
No worries 😃 Things look good now, thanks!
Hi @geirsagberg and sorry for my late reply! Just had a huge backlog after Corona stuff and not having time to prioritize open source 😄
There is a new release tomorrow and will prioritize this for next release, as you can see with my PRESSING label 😉
I have a feeling
proxyEffects
simply tries to bind to a function that is bound toundefined
… which we should check. But I have to dive into the example you gave (great 👍 ) to be sure 😄