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

Render error when dynamic import throws #3897

Closed
wants to merge 10 commits into from

Conversation

timneutkens
Copy link
Member

Fixes #2898

Follow-up on #3009

@timneutkens timneutkens closed this Apr 1, 2018
@timneutkens timneutkens deleted the fix/dynamic-import-error branch April 1, 2018 18:10
@vjpr
Copy link

vjpr commented May 7, 2018

@timneutkens Any reason this was closed?

@Jabher provided a fix 7 months ago.

Can we please merge this into master asap?


if (!this.ssr) {
promise.catch((error) => {
window.next.renderError(error)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be window.next.renderError({err}).

export async function renderError (props) {
  const {err} = props

@vjpr vjpr mentioned this pull request May 8, 2018
@lock lock bot locked as resolved and limited conversation to collaborators May 7, 2019
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.

Import of dynamic component with ssr: false that fails should log an error somehow
2 participants