Is anyone having problems with viewmodel and latest updates? After updating a Meteor 1.2 project to 1.4.2 a few weeks back. all was working fine. Today decided to upgrade (meteor update --patch) to 1.4.2.7 and all continued to work fine. Then did a plain meteor update that updated a few packages:
This project is already at Meteor 1.4.2.7, the latest release.
Changes to your project s package version selections from updating package versions:
babel-compiler upgraded from 6.13.0 to 6.14.1
check upgraded from 1.2.4 to 1.2.5
ddp-client upgraded from 1.3.2 to 1.3.3
ddp-server upgraded from 1.3.12 to 1.3.13
ecmascript upgraded from 0.6.1 to 0.6.3
launch-screen upgraded from 1.1.0 to 1.1.1
logging upgraded from 1.1.16 to 1.1.17
minifier-css upgraded from 1.2.15 to 1.2.16
minimongo upgraded from 1.0.19 to 1.0.20
modules upgraded from 0.7.7 to 0.7.9
modules-runtime upgraded from 0.7.8 to 0.7.9
mongo upgraded from 1.1.14 to 1.1.15
observe-sequence upgraded from 1.0.14 to 1.0.15
tracker upgraded from 1.1.1 to 1.1.2
webapp upgraded from 1.3.12 to 1.3.13
and kaboom. It appears to point to manuel:viewmodel, but not sure since there was no update to the package. I have create a very minimal repro of the issue, in case anyone has a few spare cycles to have a look. broke in the last commit. @manuel ?
Uncaught Error: {{#each}} currently only accepts arrays, cursors or falsey values.
at badSequenceError (observe-sequence.js?hash=14ae414ā¦:174)
at observe-sequence.js?hash=14ae414ā¦:139
at Object.Tracker.nonreactive (tracker.js?hash=9f8a0ceā¦:631)
at observe-sequence.js?hash=14ae414ā¦:116
at Tracker.Computation._compute (tracker.js?hash=9f8a0ceā¦:339)
at new Tracker.Computation (tracker.js?hash=9f8a0ceā¦:229)
at Object.Tracker.autorun (tracker.js?hash=9f8a0ceā¦:604)
at Object.observe (observe-sequence.js?hash=14ae414ā¦:113)
at Blaze.View.<anonymous> (blaze.js?hash=813922cā¦:2819)
at fireCallbacks (blaze.js?hash=813922cā¦:2013)
It should be checking for seq instanceof Array || _.isArray(seq)
EDIT: I still need to do a few tests to confirm it. Will check after Meteor is done updating. I canāt believe they havenāt fixed their update mechanism so it doesnāt take forever (Itās been almost 2 years now).
yeah, thanks for following it up. I guess it would be a matter of time before we had more complains⦠I will pin observe-sequence to 1.0.14 until fixed.
Hi Manuel! I ran into this issue too, but am not really familiar with the answer youāre proposing. How do I āmonkey patch underscoreā properly?[quote=āmanuel, post:4, topic:34106ā]
monkey patch underscore: _.isArray = function(arr) { return arr instanceof Array };
[/quote]
@hluz - If you could share how you reverted your package it would be greatly appreciated! Stuck with this issue right now and as pasted above, I am not able to get a revert to work.
Error: {{#each}} currently only accepts arrays, cursors or falsey values.
at badSequenceError (observe-sequence.js?hash=14ae414ā¦:174)
at observe-sequence.js?hash=14ae414ā¦:139
at Object.Tracker.nonreactive (tracker.js?hash=9f8a0ceā¦:631)
at observe-sequence.js?hash=14ae414ā¦:116
at Tracker.Computation._compute (tracker.js?hash=9f8a0ceā¦:339)
at new Tracker.Computation (tracker.js?hash=9f8a0ceā¦:229)
at Object.Tracker.autorun (tracker.js?hash=9f8a0ceā¦:604)
at Object.observe (observe-sequence.js?hash=14ae414ā¦:113)
at Blaze.View.<anonymous> (blaze.js?hash=813922cā¦:2819)
at fireCallbacks (blaze.js?hash=813922cā¦:2013)
This page worked perfectly prior to 1.4 update⦠and we need 1.4 for newer node version to support a NPM package that we require in our projectā¦
Any assistance on this issue would be appreciated!
(Edit: It seems it is automaticallly updating the version?
I noticed after editing it multiple times it is going back to version 15, and I see this in console:
Changes to your project's package version selections:
observe-sequence upgraded from 1.0.14 to 1.0.15
@Spyridon, you appear to have some contradicting references to versions of the package⦠could you please check that you check for duplicate references⦠ensure that you:
Have no line for observe-sequence in .local/packages
Have only one line in .local/versions specifying 1.0.14
Donāt do a meteor update after changing the versions file
I have projects running 1.4.2.3 with observe-sequence@1.0.14 without any issuesā¦
Also, during removal I ensured there was none at all.
Yes, same in versions file.
Have not been doing meteor update after changing. It seems as soon as I start my application, the line about āChanges to your projectās package version selectionsā appears.
Not sure why the package version keeps automatically updating.
Here is the output from attempting to update versions file and starting server again:
=> Started proxy.
=> Started MongoDB.
Changes to your project's package version selections:
observe-sequence upgraded from 1.0.14 to 1.0.15
=> Started your app.
=> App running at: http://localhost:3000/
There should be no need to mention the package at all in the packages file⦠(no need to do meteor add observe-sequence) and versions file should have observe-sequence@1.0.14
what Meteor release are you at? Are you using any local packages?
No local packages, just some atmosphere/npm (pretty standard ones).
Based upon your input just now, I removed observe-sequence. At that point, it was no longer in packages file, and observe-sequence@1.0.15 was still in there.
So I updated to 1.0.14. When I start server, same exact thing happens:
observe-sequence upgraded from 1.0.14 to 1.0.15
Any ideas what is automatically upgrading the package??