Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hassanzadeh opened this issue Aug 12, 2024 · 1 comment

Comments

@hassanzadeh
Copy link

hassanzadeh commented Aug 12, 2024

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

@hassanzadeh
Copy link
Author

hassanzadeh commented Aug 12, 2024

some update, the older version 4.24 works, though it does not support type and openGraph parameters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant