Skip to content

--convertFields doesn't work with hs upload CLI command #875

Open
@vladislav-gg

Description

@vladislav-gg

We are currently in the process of developing a website for our client, and we are utilizing the cool --convertFields feature for shared fields. To take advantage of the ES6 syntax, I am using the .mjs format, which has been working well overall.

However, I have encountered a particular issue with the --convertFields feature when using the hs upload <src> <dest> --convertFields CLI command. The problem is that it uploads all files except for the fields.mjs ones, so we are missing our fields across all modules.

The workaround is to simply use hs watch <src> <dest> --convertFields command and manually save each .mjs file individually, then the converted files are getting successfully uploaded to Hubspot.

I am curious to know if this issue is a known bug or if there is an alternative command that allows for uploading the entire project seamlessly.

It clearly says that we can use hs upload in documentation - https://developers.hubspot.com/docs/cms/building-blocks/modules/write-fields-using-javascript#hs_cos...

Metadata

Metadata

Assignees

No one assigned

    Labels

    CMSIssues specific to CMS functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions