HubSpot/hubspot-cli

Template validation error when uploading Material React components

milukove opened this issue · 0 comments

Description and Context

I'm using React Boilerplate to create an app: https://github.com/HubSpot/cms-react-boilerplate
I've added Material React components to the app: https://mui.com/
When I'm using Drawer component (https://mui.com/components/drawers/) and trying to upload project to HS I get template validation error.
It looks like the problem is in double curly brackets in compiled main.js file.

My HS CLI version is 3.0.10

Steps to reproduce

  1. Clone react boilerplate
  2. Add Material React library
  3. Use Material Drawer component in the App.js file
  4. Create hubspot.config.yml or run "hs init"
  5. Run "yarn start"

Expected behavior

"Dist" folder correctly uploaded to HS. JS files are not validated by HUBL template validator.

Screenshots

Screenshot 2022-03-29 at 04 03 04

Screenshot 2022-03-29 at 04 03 39