Comments (11)
Be sure to add aldeed:simple-schema
to your project aswell.
from meteor-wizard.
So, isn't this added as a dependency?
meteor add forwarder:autoform-wizard
Changes to your project's package version selections:
aldeed:autoform added, version 5.0.3
aldeed:simple-schema added, version 1.1.0
forwarder:autoform-wizard added, version 0.6.4
momentjs:moment added, version 2.8.4
Additionally, I did try adding aldeed:simple-schema
on it's own, but didn't help. Also tried moving relevant code around to test loading order, but to no avail.
from meteor-wizard.
Only autoform is a dependency, simple-schema isn't used by the wizard.
Try putting your code in Meteor.startup(function(){}); , it shouldn't be necessary but maybe it helps.
I can't really see what's going wrong here otherwise.
from meteor-wizard.
Assuming packages are not the issue, what is the bare minimum code needed to get a generic wizard going so I can test what breaks it?
from meteor-wizard.
Have you tried running the example on your machine? https://github.com/forwarder/meteor-wizard-example
from meteor-wizard.
Yes, just cloned and tested the example. Works fine. Going to give it another go for my project.
from meteor-wizard.
Yeah, so weird. After deleting all my code and re-adding the package with what seems to be most basic code necessary I'm still getting:
Your app is crashing. Here's the latest log.
/Users/costanzab/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
throw(ex);
^
ReferenceError: SimpleSchema is not defined
at app/lib/wizard.js:5:28
at app/lib/wizard.js:32:3
...
from meteor-wizard.
Did meteor add aldeed:simple-schema
. I was able to see my wizard template by 'manually' telling FlowRouter to find it. Then I went to setup the Wizard / FlowRouter bind and now get the error:
ReferenceError: Wizard is not defined
at app/lib/router.js:45:3
Do I need to add another package on my own, or ... ???
I assumed I should put the following code in my router.js
Wizard.registerRouter('flow:router', {
go: function(name, stepId) {
FlowRouter.go(name, this.getParams(stepId));
},
getParams: function(stepId) {
var route = Router.current()
, params = route.params || {};
return _.extend(params, {step: stepId});
},
getStep: function() {
return FlowRouter.getParam('step');
},
path: function(name, stepId) {
return FlowRouter.go(name, this.getParams(stepId));
}
});
and lastly, below in my client code:
Wizard.useRouter('flow:router');
... Why is it 'flow:router' and not 'meteorhacks:flow-router' by the way?
from meteor-wizard.
Wizard is only available on the client, so make sure to wrap it in Meteor.isClient or put it somewhere in the client folder. You can name it whatever you like, meteorhacks:flow-router makes more sense indeed.
from meteor-wizard.
I moved the Iron Router and Flow Router binding into separate packages and updated the wizard package. Please see the updated docs on how to use https://github.com/forwarder/meteor-wizard#routers
I also updated the Flow Router package and example to use meteorhacks:flow-router
instead of flow:router
, thanks.
from meteor-wizard.
I did get the wizard working nicely. Will checkout the FR package for my routes. Thanks for the help and prompt responses!
from meteor-wizard.
Related Issues (20)
- i18n not working for buttons HOT 1
- Example of using onSubmit hook? HOT 1
- Doesn't work for more than two (2) steps HOT 1
- ...
- Multi step form: clicking back then next from 2nd step loses 2nd step's data HOT 2
- Route not updated, when opening an invalid step. HOT 1
- How to initial data for update form? HOT 8
- Can't get updated value of "wizard.mergedData()" for previous step when submit update form. HOT 24
- pathForStep helper adds step ID but link doesn't do anything HOT 5
- Iron Router pathFor helper not working as expected when using Wizard route HOT 2
- Can't move to other steps in wizard in both click events and programmatically after Hard page refresh HOT 4
- wizard.mergedData() return {} HOT 7
- wizard is not cleared for new order HOT 1
- values from previous steps HOT 1
- Wizard undefined HOT 1
- Autoform 6 --allow-incompatible-update HOT 5
- Still working? HOT 3
- Setting to remove steps <ol>? HOT 2
- Not working link in docs
- Implement custom steps template
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meteor-wizard.