Skip to content

Type error: Cannot find module 'src/types' or its corresponding type declarations. #1478

@hassanzadeh

Description

@hassanzadeh

Describe the bug
Installed the package for my nextJS 14/reac-18 app, when building (vercel build) I get the error bellow:
`./node_modules/next-seo/lib/jsonld/article.d.ts:3:31
Type error: Cannot find module 'src/types' or its corresponding type declarations.

1 | import React from 'react';
2 | import { JsonLdProps } from './jsonld';

3 | import { ArticleAuthor } from 'src/types';
| ^
4 | export interface ArticleJsonLdProps extends JsonLdProps {
5 | type?: 'Article' | 'BlogPosting' | 'NewsArticle' | 'Blog';
6 | url: string;
`

Expected behavior
Should build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions