zodern / melte

Svelte compiler for Meteor with built in tracker integration and HMR
MIT License
33 stars 14 forks source link

svelteAwareAutorun breaks at random with `TypeError: Cannot read property 'push' of null` #9

Closed arggh closed 3 years ago

arggh commented 3 years ago

Sometimes our app breaks while changing routes with this error:

TypeError: Cannot read property 'push' of null
    at _autoStopComputation (autorun.js:45)
    at Object.svelteAwareAutorun [as autorun] (autorun.js:20)
    at Blaze.View.autorun (view.js:206)
    at Blaze.TemplateInstance.autorun (template.js:325)
    at Blaze.TemplateInstance.<anonymous> (svelte-component.js:46)
    at template.js:119
    at Function.Template._withTemplateInstanceFunc (template.js:490)
    at fireCallbacks (template.js:115)
    at Blaze.View.<anonymous> (template.js:208)
    at view.js:107

I've so far observed it happening only in dev mode. I will report if I manage to reproduce with a production bundle.

zodern commented 3 years ago

This error is happening in rdb:svelte-meteor-data here.

I'm not familiar with the output from svelte's compiler. If this error only happens when using Melte, it might be from:

arggh commented 3 years ago

Ugh, my bad. We're running multiple Meteor apps in a monorepo, and apparently one of them still uses rdb:svelte-meteor-data... Closing, and will re-open if the issues persists after removing rdb:svelte-meteor-data.