nextjs dynamic() - is not assignable to parameter of type 'DynamicOptions<{}> | Loader<{}>'.

You can try the following solution 


const StaticLabel = dynamic(() => import('./productTitle').then(mod => mod.StaticLabel));

or 



const StaticLabel = dynamic<any>(
    () => import('./producTitle').then(mod => mod.StaticLabel)
  )


Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm