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

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

Open
vladislav-gg opened this issue Jun 9, 2023 · 2 comments
Open

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

vladislav-gg opened this issue Jun 9, 2023 · 2 comments
Labels
CMS Issues specific to CMS functionality

Comments

@vladislav-gg
Copy link

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...

@j-malt
Copy link
Contributor

j-malt commented Jul 18, 2023

Hi Vladislav, at the moment any Javascript Fields file (including .mjs) is not uploaded to HubSpot, this is the intended functionality. We are working to add the ability to keep your fields.js/mjs files on HubSpot.

@stereonom
Copy link

Hi.

We use the HubSpotAutoUploadPlugin via webpack in nearly all our projects (no .mjs files involved)
The missing --convertFields for converting field.js is a real bummer.

Can you please add this feature?

@TanyaScales TanyaScales added the CMS Issues specific to CMS functionality label Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMS Issues specific to CMS functionality
Projects
None yet
Development

No branches or pull requests

4 participants