-
Notifications
You must be signed in to change notification settings - Fork 405
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
Edits to twig files included in parent do not appear until the parent file is updated #1015
Comments
I confirm this issue... It happens me exactly the same. I had to use node+mustache. Is very sad! 😞 |
CC @EvanLovely 🤔 |
I feel like this has to do with the incremental rebuilds |
It's hard to keep track of everything. This issue has been automatically marked as stale because it has not had recent activity, neither from the team nor the community. It will be closed if no further activity occurs. Please consider adding additional info, volunteering to contribute a fix for this issue, or making a further case that this is important to you, the team, and the project as a whole. Thanks! |
I'm happy to do some debugging if anyone can point me in the right direction. |
This looks like it could be worked around if the Looks like there are a couple of issues surrounding this issue. #1024 is also related to |
As a follow up I used https://www.npmjs.com/package/patch-package to patch CLI and I can no longer reproduce the issue with This doesn't solve the incremental build issue with nested templates but it helps me avoid the issue in the meantime. ¯_(ツ)_/¯ |
Fixes issue where edits to twig files included in parent do not appear until the parent file is updated. Closes issue pattern-lab#1015
@zhawkins thanks! Just back from vacation and will test this today on our project. |
Fixes issue where programmatically created twig includes would throw a warning at compile time. Closes issue pattern-lab#1015
FYI, I merged in the fix for this yesterday + this was published to NPM ~6 hours ago! |
Thanks Salem! |
I am using Pattern Lab Node
v3.0.0
onMac
, with Nodev8.14.0
, using theTwig
Edition.Expected Behavior
After running
npm create pattern-lab
and choosing thestarterkit-twig-demo
, I expect that while viewing a browser pages such as the comment thread in patternlab, I will see the page reload when I make changes to the included twig file (e.g. editing the02-single-comment.twig
file).Actual Behavior
In order to see the changes, I have to edit
00-comment-thread.twig
, which then shows changes to both the parent template and it's included child templates.Steps to Reproduce
02-single-comment.twig
file, which the comment thread includes.00-comment-thread.twig
, and then both changes appear.The text was updated successfully, but these errors were encountered: