Template validation error when uploading Material React components
milukove opened this issue · 0 comments
milukove commented
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
- Clone react boilerplate
- Add Material React library
- Use Material Drawer component in the App.js file
- Create hubspot.config.yml or run "hs init"
- Run "yarn start"
Expected behavior
"Dist" folder correctly uploaded to HS. JS files are not validated by HUBL template validator.