I am migrating a meteor app from 1.4 to 1.9… so far, not too bad… but I’m now getting an error that seems to indicate that SimpleSchema doesn’t see the meteor-schema-index extended options, index and unique, even though the docs say meteor-schema-index is included in meteor-collection2 (and the code worked fine in the 1.4 version).
If I remove the unique=true option from the definition for the phone field below it will not generate the error:
Thanks that was the first thing I tried. Unfortunately, didn’t work. For now I have rolled back to old versions of SimpleSchema and meteor-collection-2, which do work:
As both autoform and collection2 are on new versions now (6 and 3), I’m not surprised, but I am surprised I can’t find anything in the migration docs that indicates I’d get this kind of error.
I’ll try that… since this code was working previously, unaltered, and now works fine with the older versions of the packages, I’m going to shelve this for now. I need to tackle the other big issue upgrading brings… Flowrouter routes (I’m getting: Error : There is no route for the path: / …as if the class is not initializing…)
Ok, if you ask a question, get an answer and you shelve the matter, next time someone comes here will have to ask “So, you asked a question and got an answer. Did it work?” This is a community and we all have to benefit in one way or another so I’d appreciate it if you finalized your queries in a different way than “shalved”. This was a request for help. If you look at other requests for help, they tend to end up in a [SOLVED] status. What is the status of your request?!
I appreciate the suggestions, thanks @paulishca. Tried importing and direclty extending. Unfortunately I get the same error. I will keep looking into this…
Hi there, I had the same issue as @marcusmarcus and could not fix it with all of your suggestions. Went through more or less the same mitigations. If there is anyone with a good tip I would be very thankful too