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: Type instantiation is excessively deep and possibly infinite. #2281

Open
nitinmagdumvista opened this issue May 28, 2024 · 4 comments

Comments

@nitinmagdumvista
Copy link

nitinmagdumvista commented May 28, 2024

🐛 Bug Report

Error in nextjs app
Type error: Type instantiation is excessively deep and possibly infinite.
while updating next-i18next from ^15.0.0 to ^15.3.0

To Reproduce

const path = require('path');

/** @type {import('next-i18next').UserConfig} */
const i18nConfig = {
    i18n: {
        defaultLocale: 'en-US',
        locales: [
            'en-US',
            'en-AU',
            'en-GB',
            'fr-FR',
            'fr-CA',
            'fr-CH',
            'de-DE',
            'en-CA',
            'en-NZ',
            'en-SG',
            'en-IE',
            'en-IN',
            'de-AT',
            'de-CH',
        ],
    },
    defaultNS: 'common',
    fallbackLng: false,
    localePath: path.resolve('./src/i18n'),
};

module.exports = i18nConfig;

Expected behavior

A clear and concise description of what you expected to happen.

Your Environment

  • runtime version: i.e. node v18.13.0
  • i18next version: i.e. ^23.11.4
  • next-i18next: i.e. ^15.3.0
  • next: i.e. 13.5.6
  • os: Mac, Windows, Linux - Mac
  • any other relevant information
@adrai
Copy link
Member

adrai commented May 28, 2024

Please provide a minimal reproducible example repository.

@nitinmagdumvista
Copy link
Author

"typescript": "^5.4.5"

@nitinmagdumvista
Copy link
Author

Please provide a minimal reproducible example repository.

its company code repo will not be able to provide sample

@adrai
Copy link
Member

adrai commented May 28, 2024

Then not able to help, sorry.

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

No branches or pull requests

2 participants