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

Potential fix for dynamic import failing during development #4484

Closed
wants to merge 2 commits into from

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented May 27, 2018

I noticed that when running next in development mode chunks are only added to the manifest after a page that utilizes them is built causing Webpack to throw an error if you first navigate to a page that doesn't require the chunk and then navigate to a page that does.

The solution I'm using is splitting the Webpack chunk's manifest and adding it to the document which is updated when registerPage is sent new chunks. This should resolve issue #3775

@ijjk ijjk closed this Oct 29, 2018
@ijjk ijjk deleted the dynamic-chunks-fix branch February 17, 2019 05:43
@lock lock bot locked as resolved and limited conversation to collaborators Feb 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant