Meteor-Community-Packages / meteor-simple-schema

Meteor integration package for simpl-schema
https://github.com/Meteor-Community-Packages/meteor-simple-schema
MIT License
919 stars 161 forks source link

Error: Invalid definition for inMenu field #721

Closed xlabpoh closed 6 years ago

xlabpoh commented 6 years ago
at packages/aldeed_simple-schema.js:1429:13

at Function..each..forEach (packages/underscore.js:147:22) at new SimpleSchema (packages/aldeed_simple-schema.js:1426:5)

Installed packages include: aldeed:collection2-core@2.0.1 aldeed:simple-schema

Code: Meteor.methods({ toggleMenuItem: function(id, currentState) { Recipes.update(id, { $set: { inMenu: !currentState } }); }, deleteRecipe: function(id) { Recipes.remove(id); } });

How to fix?

aldeed commented 6 years ago

The Meteor SimpleSchema package is no longer maintained other than critical fixes to keep it running with each latest Meteor release. Closing non-critical issues in this repo. Anyone who cares about this may do one or more of the following: