Next.js Discord

Discord Forum

Need Help with Next Exports

Unanswered
Atlantic salmon posted this in #help-forum
Open in Discord
Original message was deleted.

4 Replies

Atlantic salmon
I am trying to export dynamic paths
But I am getting an error on the exportPathMap saying

Type '(defaultPathMap: ExportPathMap, { dev, dir, outDir, distDir, buildId }: { dev: boolean; dir: string; outDir: string | null; distDir: string; buildId: string; }) => Promise<{}>' is not assignable to type '(defaultMap: ExportPathMap, ctx: { dev: boolean; dir: string; outDir: string | null; distDir: string; buildId: string; }) => ExportPathMap | Promise<ExportPathMap>'.
  Type 'Promise<{}>' is not assignable to type 'ExportPathMap | Promise<ExportPathMap>'.
    Type 'Promise<{}>' is not assignable to type 'Promise<ExportPathMap>'.
      Type '{}' is not assignable to type 'ExportPathMap'.
        Index signature for type 'string' is missing in type '{}'
What am I doing wrong here