Closed j-khong closed 3 years ago
Dear Aldeed,
Thanks a lot in advance for support. I have exactly the same errors. Below is my situation
Package.json :
"simpl-schema": "^1.5.0"
Meteor Packages : aldeed:autoform materialize:materialize aldeed:collection2-core
parts.js file : import { Mongo } from 'meteor/mongo'; import SimpleSchema from 'simpl-schema'; SimpleSchema.extendOptions(['autoform']);
export const Parts = new Mongo.Collection("parts"); // const Schemas = {};
//Schemas.Part = new SimpleSchema({ Parts.attachSchema(new SimpleSchema({ partNo: { type: String, label:"Part No", max: 500 }, title: { type: String, label: "Title", max: 200 }, summary: { type: String, label: "Summary", optional: true, max: 1000 } }));
same issue here, was not even planning on updating but meteor just refused to work after my windows updated automatically and was forced to update meteor as well as my project to meteor 1.6.1.1 and aldeed:autoform@6.3.0, aldeed:collection2-core@2.1.2 and "simpl-schema": "^1.5.0", Downgrading meteor to 1.6.1 still doesn't solve it. A form that used to work well now looks like this .
trying to force a downgrade to aldeed:autoform@6.2.0 and aldeed:collection2@2.7.1, aldeed:simple-schema@1.5.4 leads to more errors: Error: Invalid definition for pick field. W20180503-14:27:13.493(0)? (STDERR) at packages\aldeedsimple-schema.js:1429:13 W20180503-14:27:13.494(0)? (STDERR) at Function..each._.forEach (packages\underscore.js:147:22) W20180503-14:27:13.497(0)? (STDERR) at new SimpleSchema (packages\aldeed_simple-schema.js:1426:5) W20180503-14:27:13.498(0)? (STDERR) at ns.Collection.c2AttachSchema [as attachSchema] (packages\aldeed_collection2.js:60:10)
what can we do temporarily to keep the project moving while this is solved?
Hi there,
I hit same issue. After walking my :dog2: :dog2: out and a quick look into debugger I discovered that formId
is not being picked up from quickForm
template id
parameter.
Meanwhile {{#autoForm ...}}
variant with afQuickField
s works as expected OOB.
Hope this helps.
Best wishes, Alexei
Hi guys
i've found the solution use npm "simpl-schema": "^1.4.3" instead of 1.5
and make sure you have no meteor-simple-schema deps with others packages (ex meteortoys:allthings)
Dear j-khong
Thanks a lot dude. I changed and my issue resolved. Happy coding!
I changed the versions, but it didn't change anything. Do you have any other recommendations?
Thank you for your help. It works for me with version 0.5.0 :/
aldeed:autoform@6.3.0 aldeed:collection2@3.0.0
"simpl-schema": "^0.5.0", "babel/runtime": "^7.0.0-beta.42",
Thanks j-khong
your solution worked for me as well!
@Pierre-Mike, what worked for me was to change to aldeed:autoform@6.3.0, "simpl-schema": "^1.4.2" make sure simpleschema is not installed and packages like meteortoys:allthings which requires simpleschema is also removed. Also try to run npm install to make sure you have the simpl-schema installed to correct version.
Thanks j-khong
This solution worked for me. Hopefully, we will see a fixed version going forward.
ho yes that also works for me now I modified the file "package-lock.json" which had remained on the version of simpl-schema : 1.5.0
Everything works for me. Thanks a lot.
quickform still doesn't work for me autoform works when it is like that:
{{#each afFieldNames }}
{{> afQuickField name=this.name}}
{{/each}}
+1 Meteor 1.7.0.4-rc1, simple-schema 1.4.3 works, simple-schema 1.5.3 does not work. (package-lock.json reverted, npm prune, npm install)
+1
I've opened pull request in simple-schema-js package which hopefully will solve this issue aldeed/simple-schema-js#306
Has been fixed by this PR merge:
This is resolved with the latest SimpleSchem
Hi aldeed
First of all, thank you for your contributions : simple-schema, collection2 and autoform are killers
I've recently wanted to switch to simpl-schema (npm package) and i've encountered some errors. Here is how i reproduce the errors
First, set up the project
=>aldeed:autoform@6.3.0 =>aldeed:collection2@3.0.0 =>"simpl-schema": "^1.5.0"
Add a little bit of code
and then the errors
thanks in advance