[solved] attachSchema is not a function

I have this new error : attachSchema is not a function
I suppose this is from the update of aldeed:collection2 from 3.5.0 to 4.0.0.
I do not see any breaking change here : https://github.com/Meteor-Community-Packages/meteor-collection2/blob/master/CHANGELOG.md#400-beta.3

Do you know if something has changed ?

Yes, there is a change. In v4.0.0 you need to explicitly import Collection2 (either statically or dynamically). See here: Import using static imports

1 Like