forwarder / meteor-wizard

A wizard component for Autoform.
MIT License
67 stars 17 forks source link

Autoform 6 --allow-incompatible-update #79

Open nosizejosh opened 7 years ago

nosizejosh commented 7 years ago

@Pagebakers @samuelluis @zckly Hello Guys. HOw soon is the package going to be updated to work with Autoform 6. My project depends on both and currently meteor wizard only work with autoform 5. Can you suggest alternatives?

Pagebakers commented 7 years ago

I haven't upgraded my project to version 6 yet, I'm also not sure when I will.

I'm happy to pull requests though.

What problems are you running in with AutoForm 6?

nosizejosh commented 7 years ago

@Pagebakers thanks for replying, I get this error when i try to add the package

` => Errors while adding packages:

While selecting package versions: error: Potentially incompatible change required to top-level dependency: aldeed:autoform 5.8.1, was 6.0.0. Constraints on package "aldeed:autoform":

To allow potentially incompatible changes to top-level dependencies, you must pass --allow-incompatible-update on the command line.`

I cannot downgrade the autform as most parts of the project depend of the project depend on it. Please I need help.

Pagebakers commented 7 years ago

Please try to run with --allow-incompatible-update and check if it's still working and I can do a quick version bump then :)

nosizejosh commented 7 years ago

I have tried and this is what i get due to the version constraints

J:\testApp3>meteor add forwarder:autoform-wizard --allow-incompatible-update Updating package catalog [Prog => Errors while adding packages:

While selecting package versions: error: Conflict: Constraint aldeed:autoform@5.7.0 is not satisfied by aldeed:autoform 6.0.0. Constraints on package "aldeed:autoform":

  • aldeed:autoform@6.0.0 <- top level
  • aldeed:autoform@5.7.0 <- forwarder:autoform-wizard 0


from the change-log, not much changed from autoform 5.8 to 6, i believe you can go ahead and bump the version up, i really need it to work :(

> >6.0.0
> 
> This version is updated to work with the new SimpleSchema NPM package. It is not backwards compatible with the Meteor SimpleSchema package. See:
> 
> https://github.com/aldeed/node-simple-schema
> https://github.com/aldeed/meteor-simple-schema/blob/v2/CHANGELOG.md#200
> https://github.com/aldeed/meteor-collection2#important-note-the-version-in-this-repo-is-deprecated
> 5.8.1
> 
> Fix AutoForm.getValidationContext to return correct context when no formId argument is provided.
> 
> 5.8.0
> 
> You can now set singleMethodArgument=true as a form attribute on a method-update type form, and your method will be called with a single object argument with _id and modifier properties. You should do this if using the mdg:validated-method package.
> 
> 5.7.1
> 
> For "normal" type forms, don't end submission until this.done() is called.
Pagebakers commented 7 years ago

Released version 0.10.0 for AutForm 6 support.

It should run just fine, but I don't have time to test it on my project as I'm traveling right now.