TypeError: SimpleSchema is not a constructor
See original GitHub issueCan’t create a schema for some reason.
Here’s my code on a clean Meteor 1.7 install.
import { Mongo } from 'meteor/mongo';
import SimpleSchema from 'simpl-schema';
const schema = new SimpleSchema({
name: String,
registered: Boolean,
});
I get the error :
TypeError: SimpleSchema is not a constructor
Any ideas?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
'TypeError: SimpleSchema is not a constructor' · Issue #293
I'm using Meteor 1.7 as well as npm and everytime I startup my meteor app, I get this error log: W20180731-20:01:19.513(-5)?
Read more >meteor - SimpleSchema is not a constructor
My app constantly crashes with this error. TypeError: SimpleSchema is not a constructor at attendances.js (imports/api/attendances/attendances.
Read more >TypeError: SimpleSchema is not a constructor in Meteor ...
Coding example for the question TypeError: SimpleSchema is not a constructor in Meteor 1.6 project-Reactjs.
Read more >Simpleschema Is Not A Constructor
I'm getting another weird error: Uncaught TypeError: Class constructor a cannot While simpleSchema requires using minCount to make an array not empty.
Read more >TypeError: Schema is not a constructor (Example)
TypeError : Schema is not a constructor. Hi all. I wonder if someone can help me, please. :) Here's my code: ' ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dakota11 I just solved by deleting my node_modules directory and doing a fresh npm install. Then fired up my meteor app and that seemed to have worked.
Solved:
In my package.json i remove
simpl-schema
from devDependencies, and add to dependencies