SimpleSchema is not a constructor

后端 未结 1 685
你的背包
你的背包 2021-01-25 08:23

My app constantly crashes with this error. TypeError: SimpleSchema is not a constructor at attendances.js (imports/api/attendances/attendances.js:44:27). I\'ve goog

1条回答
  •  遥遥无期
    2021-01-25 09:10

    I tried the suggested fix in the comment by @bp123 that you should reset the Meteor project, and that fixed it for me too.

    So I'm turning that comment into an answer:

    Reset your project.

    It does not seem impossible that a schema need to be added before any data is put in the database, but I'm very confused why this applies even for creating a Schema without attaching it to anything.

    0 讨论(0)
提交回复
热议问题