You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional context
I looked at the next-seo/lib/jsonld/video.d.ts and apparently the reference to type Video wasnt quite right for me.
There was no src dir on my node-modules/next-seo installation. So if I changed the import like below. it worked fine.
// node-modules/next-seo/lib/jsonld/video.d.ts
import React from 'react';
- import { Video } from 'src/types';+ import { Video } from '../types';
import { JsonLdProps } from './jsonld';
export interface VideoJsonLdProps extends JsonLdProps, Video { }
declare function VideoJsonLd({ type, keyOverride, ...rest }: VideoJsonLdProps): React.JSX.Element;
export default VideoJsonLd;
The text was updated successfully, but these errors were encountered:
importtype{Video}from'next-seo/lib/types'importtype{JsonLdProps}from'next-seo/lib/jsonld/jsonld'declarefunctionVideoJsonLd(props: JsonLdProps&Video): Element// <VideoJsonLd /> should be typed correctly now
Describe the bug
<VideoJsonLd />
doesnt give correct autocompletion. Doesnt throw errors on passing any random props either.Reproduction
https://stackblitz.com/edit/stackblitz-starters-kebysb?description=The%20React%20framework%20for%20production&file=pages%2Findex.tsx&title=Next.js%20Starter
Additional context
I looked at the
next-seo/lib/jsonld/video.d.ts
and apparently the reference to typeVideo
wasnt quite right for me.There was no src dir on my
node-modules/next-seo
installation. So if I changed the import like below. it worked fine.// node-modules/next-seo/lib/jsonld/video.d.ts
The text was updated successfully, but these errors were encountered: