Skip to content

meteor-bits/meteor-define-mutation-methods

Repository files navigation

3.4.1 Startup error when using the defineMutationMethods property in a collection declaration #14381

When using the packages aldeed:collection2@4.1.5 and aldeed:simple-schema@1.13.1 in a project, declaring a collection with the defineMutationMethods: false property triggers the following error:

packages/core-runtime.js:189                  
            throw error;
            ^

TypeError: Cannot read properties of undefined (reading 'insert')
    at packages/allow-deny/allow-deny.js:590:29
    at Array.forEach (<anonymous>)
    at addValidator (packages/allow-deny/allow-deny.js:570:5)
    at CollectionPrototype.deny (packages/allow-deny/allow-deny.js:72:3)
    at defineDeny (packages/aldeed:collection2/main.js:765:9)
    at Collection.c2AttachSchema [as attachSchema] (packages/aldeed:collection2/main.js:113:5)
    at Object../imports/api/links.js (webpack:/meteor-define-mutation-methods/imports/api/links.js:11:17)
    ...

Example: https://github.com/meteor-bits/meteor-define-mutation-methods

This error didn't occur in the 3.4.1-beta release.

Environment:

  • Meteor version: 3.4.1
  • OS: Xubuntu 24.04 (x86_64)
  • Local Node v22.22.2

About

3.4.1 Startup error when using the defineMutationMethods property in a collection declaration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors