Hey guys , i’ve been having an issue with the fetching files from my hubspot account, when i create a module on the design tool and create couple of fields, when i try to fetch the module(or any other file) into my local environment, it would not have the fields.json and every other file associated to the module updated accordingly,
i have also tried the hs fetch --overwrite , it still doesn’ seem to work, i’d really appreciate any help i can get to fix this,
Thank you in anticipation.
Hi @OJOGBODO,
haven’t discovered something like this because
fetch ... --overwrite
should overwrite existing files like you’ve mentioned.
Have you tried to delete or move the local module? and fetch it again?
Also a tipp: If you add fields via design-tools to a module you can copy just the fields.json here:
This works for the style-fields aswell
best,
Anton
Thank you anton @Anton , intererstingly, i have tried to delete the module and infact at some point , i felt it was because the module or file already existed locally, so i created an entirely new module and tried to fetch , it was still missing out on all the other details in the file (fields.json , meta.json e.t.c).
This is the command i use in my terminal
npx hs fetch --overwrite /cta-theme-new/modules/My-test.module.
Thank you in anticipation.
Hi @OJOGBODO,
have you tried the documented way?
So instead of
npx hs fetch --overwrite ....
opening the folder via cli and run this
hs fetch --overwrite cta-theme-new/modules/My-test.module /cta-theme-new/modules/My-test.module
best,
Anton
