You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
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 thehs 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...The text was updated successfully, but these errors were encountered: