Questions tagged [simpl-schema]

16 questions
3
votes
3 answers

TypeError: SimpleSchema is not a constructor in Meteor 1.6 project

I am creating a SimpleSchema for my staff collection in Meteor and I am getting error "TypeError: SimpleSchema is not a constructor" in my server console. I've gone through the SimpleSchema documentation and this constructor is there, my code is…
amyst
  • 616
  • 1
  • 10
  • 22
2
votes
1 answer

Meteor - simpl-schema type boolean, accept "Yes" has true and "No" has false

I’ve created a Schema in an external file with all the mandatory and optional fields and on my client.js I have an array with the XLSX fields that were inputed by the user. My objective is to validade my array against my schema, output an error if…
Pedro Martins
  • 219
  • 1
  • 10
1
vote
2 answers

simpl-schema: How to create an schema that validates every property of an object is of a certain schema?

Basically... I have something of the following type: record (aka Map). Basically, an object that can have any field, as long as it is an user. How do I create an Schema that validates that?
caeus
  • 3,084
  • 1
  • 22
  • 36
1
vote
0 answers

Meteor: Use value from an autoValue field to compute for value in another autoValue field

Meteor v 1.10.1. I am using meteor-collection2@3.0.6 and using simpl-schema v1.5.7 (NPM package) I have this schema: import SimpleSchema from "simpl-schema"; Orders.schema = new SimpleSchema ({ name: { type: String }, items: { type:…
1
vote
1 answer

iron meteor cannot find simpl-schema

I am using iron-meteor for scaffolding meteor crud apps and I am following this tutorial. I have iron meteor running but the problem arises when I install aldeed collections and other packages as follows; iron add twbs:bootstrap aldeed:collection2…
Phemelo Khetho
  • 231
  • 1
  • 4
  • 14
1
vote
0 answers

What causes the SimpleSchema is not a constructor error at collections.js

When using simpl-schema I am getting the following error: SimpleSchema is not a constructor I have already added aldeed:autoform aldeed:collection2@3.0.0 "simpl-schema": "^1.4.3" My code: import { Mongo } from 'meteor/mongo'; import …
Nimmi Verma
  • 465
  • 6
  • 11
1
vote
1 answer

Exception in template helper: TypeError: Cannot read property 'mergedSchema' of undefined

I am new in meteor. I am using simple schema for quickForm and got this error. Exception in template helper: TypeError: Cannot read property 'mergedSchema' of undefined main.html