developit/nextjs-preact-demo

Errors in dynamic imports are silenced

Open

#14 opened on May 7, 2020

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (22 forks)github user discovery
help wanted

Repository metrics

Stars
 (381 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Current Behavior

no page error, no console output, no term output.

Steps to Reproduce (for bugs)

// pages/index.js
import dynamic from 'next/dynamic'
const TestLoader = dynamic(import('../components/Test'), { ssr: false})
export default () => <TestLoader />

// components/Test.js
throw new Error('test')
export default () => <div>hello</div>

Contributor guide