Skip to content
New issue

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

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

Already on GitHub? # to your account

./icu.macro is not exported from package.json #1652

Closed
jellevandevelde opened this issue Jul 10, 2023 · 1 comment
Closed

./icu.macro is not exported from package.json #1652

jellevandevelde opened this issue Jul 10, 2023 · 1 comment

Comments

@jellevandevelde
Copy link

jellevandevelde commented Jul 10, 2023

🐛 Bug Report

When importing the Trans component from react-i18next/icu.macro, Webpack throws the following error: Module not found: Error: Package path ./icu.macro is not exported from package

To Reproduce

  • Install latest version
  • Import e.g. <Trans> from react-i18next/icu.macro
  • Run project
import React, { Component } from 'react';
import { withTranslation } from 'react-i18next';

// importing the macro components from react-i18next
import { Trans, Plural, Select } from 'react-i18next/icu.macro';

Expected behavior

No build errors

Your Environment

  • runtime version: node v16.10.0. Webpack 5
  • i18next version:
    "i18next": "^23.2.6",
    "i18next-http-backend": "^2.2.1",
    "i18next-icu": "^2.3.0",
    "react-i18next": "^13.0.1",
  • os: Mac
adrai added a commit that referenced this issue Jul 10, 2023
@adrai
Copy link
Member

adrai commented Jul 10, 2023

try with v13.0.2

@adrai adrai closed this as completed Jul 14, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants