Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

TypeError: field.childNamed is not a function #97

Closed
BobHatcher opened this issue Oct 18, 2017 · 3 comments
Closed

TypeError: field.childNamed is not a function #97

BobHatcher opened this issue Oct 18, 2017 · 3 comments

Comments

@BobHatcher
Copy link

Hi,

We are trying to create a changeset by doing a diff on two branches.

git diff develop feature/marketing | force-dev-tool changeset create mkt_diff

when I do that, I get an error. Here's the stack trace.

TypeError: field.childNamed is not a function
at /usr/local/lib/node_modules/force-dev-tool/lib/metadata-file-container.js:110:29
at Array.forEach (native)
at /usr/local/lib/node_modules/force-dev-tool/lib/metadata-file-container.js:109:44
at Array.forEach (native)
at MetadataFileContainer.parse (/usr/local/lib/node_modules/force-dev-tool/lib/metadata-file-container.js:106:22)
at MetadataFileContainer.diff (/usr/local/lib/node_modules/force-dev-tool/lib/metadata-file-container.js:45:8)
at /usr/local/lib/node_modules/force-dev-tool/lib/metadata-container.js:169:26
at Array.forEach (native)
at MetadataContainer.diff (/usr/local/lib/node_modules/force-dev-tool/lib/metadata-container.js:161:15)
at Socket. (/usr/local/lib/node_modules/force-dev-tool/lib/cli/changeset.js:74:38)
Manifest:

38.0

exported metadata container to config/deployments/mkt_diff

Forgive me if this is elementary, we're a little new to this. We installed the tool using npm install this morning, so we believe this is the latest version.

Thanks in advance!

@BobHatcher
Copy link
Author

To add to this, we have identified that this only occurs when we include Opportunity and Contact workflows.

amtrack added a commit that referenced this issue Oct 19, 2017
@amtrack
Copy link
Owner

amtrack commented Oct 19, 2017

@BobHatcher Thanks for reporting!
I just fixed this on the master branch.
Please install force-dev-tool using npm install git+https://github.com/amtrack/force-dev-tool.git until a new release has been published.

@BobHatcher
Copy link
Author

Thank you!

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

No branches or pull requests

2 participants