Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined is not a function #128

Open
aaronroberson opened this issue Sep 11, 2015 · 2 comments
Open

undefined is not a function #128

aaronroberson opened this issue Sep 11, 2015 · 2 comments

Comments

@aaronroberson
Copy link

running formage@3.2.21 with mongoose@4.1.6 and express@4 I get the following error:

/Users/aaronroberson/Sites/gsn/draft4-server-admin/node_modules/formage/lib/forms/AdminForm.js:40
        throw e;
              ^
TypeError: undefined is not a function
    at ArraySubForm.SubForm (/Users/aaronroberson/Sites/gsn/draft4-server-admin/node_modules/formage/lib/forms/SubForm.js:12:19)
    at new ArraySubForm (/Users/aaronroberson/Sites/gsn/draft4-server-admin/node_modules/formage/lib/forms/ArraySubForm.js:8:13)
    at new ArrayField (/Users/aaronroberson/Sites/gsn/draft4-server-admin/node_modules/formage/lib/forms/ArrayField.js:17:26)
    at path_to_field (/Users/aaronroberson/Sites/gsn/draft4-server-admin/node_modules/formage/lib/adapters/mongoose.js:159:16)
    at /Users/aaronroberson/Sites/gsn/draft4-server-admin/node_modules/formage/lib/adapters/mongoose.js:63:21
    at /Users/aaronroberson/Sites/gsn/draft4-server-admin/node_modules/formage/node_modules/lodash-contrib/node_modules/lodash/dist/lodash.js:3513:29
    at forOwn (/Users/aaronroberson/Sites/gsn/draft4-server-admin/node_modules/formage/node_modules/lodash-contrib/node_modules/lodash/dist/lodash.js:2105:15)
    at Function.map (/Users/aaronroberson/Sites/gsn/draft4-server-admin/node_modules/formage/node_modules/lodash-contrib/node_modules/lodash/dist/lodash.js:3512:9)
    at lodash.ctor.(anonymous function) [as map] (/Users/aaronroberson/Sites/gsn/draft4-server-admin/node_modules/formage/node_modules/lodash-contrib/node_modules/lodash/dist/lodash.js:5924:31)
    at paths_to_fields (/Users/aaronroberson/Sites/gsn/draft4-server-admin/node_modules/formage/lib/adapters/mongoose.js:62:21)
    at Function.getFields (/Users/aaronroberson/Sites/gsn/draft4-server-admin/node_modules/formage/lib/adapters/mongoose.js:54:18)
    at Function.AdminForm.buildFieldsHierarchy (/Users/aaronroberson/Sites/gsn/draft4-server-admin/node_modules/formage/lib/forms/AdminForm.js:36:36)
    at /Users/aaronroberson/Sites/gsn/draft4-server-admin/node_modules/formage/lib/registry.js:42:35
    at /Users/aaronroberson/Sites/gsn/draft4-server-admin/node_modules/formage/node_modules/lodash-contrib/node_modules/lodash/dist/lodash.js:3513:29
    at forOwn (/Users/aaronroberson/Sites/gsn/draft4-server-admin/node_modules/formage/node_modules/lodash-contrib/node_modules/lodash/dist/lodash.js:2105:15)
    at Function.map (/Users/aaronroberson/Sites/gsn/draft4-server-admin/node_modules/formage/node_modules/lodash-contrib/node_modules/lodash/dist/lodash.js:3512:9)```
@aaronroberson
Copy link
Author

Has this project been abandoned?

@refack
Copy link
Member

refack commented Dec 30, 2016

I'm back.
Can you post the model and a sample code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants