Next.js Discord

Discord Forum

dynamic import type issue

Unanswered
Maltese posted this in #help-forum
Open in Discord
MalteseOP
Here I am trying to import this
const calculateFixedStateNavbar = dynamic(
  () => import('../lib/dom').then((mod) => mod.calculateFixedStateNavbar),
  {
    ssr: false,
  }
);
but stuck getting this error Argument of type '() => Promise<() => void>' is not assignable to parameter of type 'DynamicOptions<{}> | Loader<{}>'.

0 Replies