Hello,
I see this : aldeed:collection2 4.0.2-beta.1 (4.0.2-beta.2 is available)
I would like to know what has changed but I cannot find the changelog of this new version. Can you give me the link to it ?
Thanks
Hello,
I see this : aldeed:collection2 4.0.2-beta.1 (4.0.2-beta.2 is available)
I would like to know what has changed but I cannot find the changelog of this new version. Can you give me the link to it ?
Thanks
When I update collection2 from beta.1 to beta.2, I receive this error :
Changes to your project's package version selections:
aldeed:collection2 upgraded from 4.0.2-beta.1 to 4.0.2-beta.2
aldeed:simple-schema*+ upgraded from 1.13.1 to 2.0.0-rc.1
mdg:validation-error added, version 0.5.1
* These packages have been updated to new versions that are not backwards
compatible.
+ In order to resolve constraints, we had to use experimental versions of these
packages.
=> Linted your app. No linting errors.
W20240607-09:01:02.183(2)? (STDERR) packages/core-runtime.js:189
W20240607-09:01:02.184(2)? (STDERR) throw error;
W20240607-09:01:02.184(2)? (STDERR) ^
W20240607-09:01:02.184(2)? (STDERR)
W20240607-09:01:02.184(2)? (STDERR) TypeError: SimpleSchema.isSimpleSchema is not a function
W20240607-09:01:02.185(2)? (STDERR) at ns.Collection.c2AttachSchema [as attachSchema] (packages/aldeed:collection2/main.js:31:23)
W20240607-09:01:02.185(2)? (STDERR) at module (packages/rationalk:core/collections.js:36:19)
W20240607-09:01:02.185(2)? (STDERR) at fileEvaluate (packages/modules-runtime.js:335:7)
W20240607-09:01:02.186(2)? (STDERR) at Module.require (packages/modules-runtime.js:237:14)
W20240607-09:01:02.186(2)? (STDERR) at Module.mod.require (/Users/dokithonon/.meteor/packages/modules/.0.20.1-rc300.2.1vxe6w6.2azwj++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/@meteorjs/reify/lib/runtime/index.js:30:33)
W20240607-09:01:02.186(2)? (STDERR) at Object.require (packages/modules-runtime.js:257:21)
W20240607-09:01:02.186(2)? (STDERR) at evaluateNextModule (packages/core-runtime.js:167:26)
W20240607-09:01:02.186(2)? (STDERR) at evaluateNextModule (packages/core-runtime.js:202:7)
W20240607-09:01:02.186(2)? (STDERR) at evaluateNextModule (packages/core-runtime.js:202:7)
W20240607-09:01:02.186(2)? (STDERR) at evaluateNextModule (packages/core-runtime.js:202:7)
W20240607-09:01:02.186(2)? (STDERR) at runEagerModules (packages/core-runtime.js:206:3)
W20240607-09:01:02.187(2)? (STDERR) at processNext (packages/core-runtime.js:128:3)
W20240607-09:01:02.187(2)? (STDERR) at packages/core-runtime.js:138:5
W20240607-09:01:02.187(2)? (STDERR) at runEagerModules (packages/core-runtime.js:144:12)
W20240607-09:01:02.187(2)? (STDERR) at processNext (packages/core-runtime.js:128:3)
W20240607-09:01:02.187(2)? (STDERR) at packages/core-runtime.js:138:5
W20240607-09:01:02.188(2)? (STDERR)
W20240607-09:01:02.188(2)? (STDERR) Node.js v20.12.2
My line 36 is very basic :
Do you know what has changed ?
Thanks to @victor and the discussion here : Post Your Tips for Updating to Meteor V3 - #26 by victor
I was able to understand the problem here.
We should change
import SimpleSchema from 'simpl-schema'
to
import SimpleSchema from "meteor/aldeed:simple-schema"
And this works again.