-
Notifications
You must be signed in to change notification settings - Fork 19
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
🐛 Add all chunks from stats object #20
Conversation
Hi @themgoncalves, any thoughts about this PR? |
Hi @lex111, Thanks for your contribution, I will be debugging the code and making sure that we got it all covered, but for that, I need to have more infos so I can a test environment for that. Do you mind to share a code demo that runs the issue you reported? |
We use your lib in Docusaurus, you probably remember this project. Reproducible demo you can find here https://github.com/facebook/docusaurus/tree/repro-2244/website-build-fail When you try to build that site by running the This happens when the user overrides the I don’t understand why this is happening, I just found out that it is due to |
Yes, this is enough information. I’ll be getting back to this topic tomorrow. Thanks for sharing such detailed infos. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code wise and functionality looks good.
Couldn't find any possible issues that this PR could introduce, so we're good to go.
@themgoncalves thank you! Although I do not understand why and how more elements can appear in |
@lex111 |
@lex111 As precaution measure I just release another patch with a few packages downgrade, as it was showing flaky behaviour which concerns me. |
@themgoncalves I got you, so I will use v0.2.2 then. |
Summary
In my project, I encountered an error (see below), in the end I found out that not all chunks are added to manifest, I tried to fix it.
Why
In my code, I ran into a problem when the chunk is used, but was not defined in the assets property, which is why I got the following error (from getBundles).
As a rule,
chunk.ids
contains only one element - this ischunk.id
, but there are cases when there may be several ids, and it seems to me that we should take this fact into account.@themgoncalves honestly, I don’t know for sure if this solution is right, but it solved my problem. I would be grateful if you could help me improve this change.
Checklist
errors
orwarnings
approved terminology
unit tests
, if apply.