question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught TypeError: SimpleSchema.messages is not a function

See original GitHub issue

https://github.com/aldeed/node-simple-schema#validate-one-key-against-another

=>

import SimpleSchema from 'simpl-schema';

SimpleSchema.messages({
    'passwordMismatch': '[label] does not match the password'
});

=>

Uncaught TypeError: SimpleSchema.messages is not a function

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:6

github_iconTop GitHub Comments

4reactions
aldeedcommented, Jun 23, 2017

@anthonymanzo Sorry it was fixed in one place in the readme but wrong in another. I fixed it now. It should be:

SimpleSchema.setDefaultMessages({
  messages: {
    en: {
      periodExists: 'Recharge Period already exists',
    },
  },
});
2reactions
anthonymanzocommented, Jun 23, 2017

The Fast Friday Fix! That solved it. cheers!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: SimpleSchema.messages is not ... - GitHub
Hi, I'm having the same problem, adding the messageBox prop did not help. Here's my code and error message: SimpleSchema.extendOptions( ...
Read more >
Cannot find attachSchema property on Mongo.Collection with ...
Property 'attachSchema' does not exist on type 'Collection<{}>'. TypeError: repo_collection.attachSchema is not a function. simple-schema ...
Read more >
[Solved] SimpleSchema.extendOptions is not a function
Hi all, I'm pretty new to Meteor & am following along to a Meteor lynda course. I'm using Simpl-schema for my schemas but...
Read more >
Bountysource
Uncaught TypeError : SimpleSchema.messages is not a function.
Read more >
How to solve the "is not a function" error in JavaScript
js we use require() to load external modules and files. This can cause, in some cases, an error like this: TypeError: require(...) is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found