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

Template validation error when uploading Material React components #658

Open
milukove opened this issue Mar 29, 2022 · 0 comments
Open

Template validation error when uploading Material React components #658

milukove opened this issue Mar 29, 2022 · 0 comments

Comments

@milukove
Copy link

milukove commented Mar 29, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant