FormidableLabs / FormidableLabs/jest-next-dynamic

Cannot read property 'preload' of undefined

Open
#44 1 comment 8 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
70
Forks
7
PR merge metrics
No merged PRs in 30d

Description

With nextjs v13.1.7-canary.3, the 'preload' function no longer exists on `next/dynamic` components with `{ssr: false}`, causing an error `Cannot read property 'preload' of undefined`

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the error with Next.js v13.1.7-canary.3 and a next/dynamic component using {ssr: false}. Trace how jest-next-dynamic handles that component and verify that calling preload no longer produces the reported undefined-property error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nextjs
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.