Skip to content

fix(storefront): bctheme-1284 Fix error on using scoped nested external templates#1003

Merged
bc-alexsaiannyi merged 2 commits intobigcommerce:masterfrom
bc-alexsaiannyi:bctheme-1284
Oct 19, 2022
Merged

fix(storefront): bctheme-1284 Fix error on using scoped nested external templates#1003
bc-alexsaiannyi merged 2 commits intobigcommerce:masterfrom
bc-alexsaiannyi:bctheme-1284

Conversation

@bc-alexsaiannyi
Copy link
Contributor

@bc-alexsaiannyi bc-alexsaiannyi commented Oct 17, 2022

What?

Currently we experience an error on attempt to use nested templates from external scoped modules due to special symbols . For instance, if we use some external template in our stencil theme where we re-use some other nested template from external and scoped module (like an UI library with styles and templates) we receive parsing error due to special symbol @. We've wrapped all such nested templates into quotes to prevent this behaviour.

Tickets / Documentation

Screenshots (if appropriate)

Screenshot 2022-10-17 at 21 28 38
categories-test template uses a nested template inside:
Screenshot 2022-10-17 at 21 27 53

Screenshot 2022-10-17 at 21 33 31

cc @bigcommerce/storefront-team, @bigcommerce/themes-team

@bc-alexsaiannyi bc-alexsaiannyi merged commit 1964ff5 into bigcommerce:master Oct 19, 2022
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

Successfully merging this pull request may close these issues.

3 participants