mjangir / formik-wizard-form

Build multi step forms using Formik with ease.
http://formikwizard.manishjangir.com
MIT License
74 stars 18 forks source link

npm package fails , but src files are ok #6

Open sayjeyhi opened 4 years ago

sayjeyhi commented 4 years ago

I am facing some weird bugs with this package. if I use npm package , I got this error :

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check the render method of `FormikWizardProvider`.

but if I use files from ./src (like example) the error will disappear.

MincePie commented 4 years ago

I have the same problem. I have just imported the src files but am now getting an error with row 5 of Step.js - which says "TypeError: component is not a function"