Comments (5)
Seems like its incompatible with i18next v23.x.x. Downgrading to v22 resolved the issue for me.
from astro-i18next.
If it helps anyone:
If you install react-i18next
, it uses version 23 by default and breaks this library, with this same error, the solution is to set the i18next
version to the latest compatible version, in my case it was:
"i18next": "22.4.10",
And change react-i18next
version
"react-i18next": "^12.3.1",
from astro-i18next.
Same problem here using <Trans />
component.
@florian-lefebvre did you find any solution?
Thanks.
from astro-i18next.
No I was trying to migrate an existing project and gave up
from astro-i18next.
I'm not using the Trans component anymore so I could migrate to pnpm but still, no solution here
from astro-i18next.
Related Issues (20)
- translation.json not hot reloading. need to restart astro dev
- Support og:locale
- pnpm exec astro-i18next generate - removes comments
- i18next version 23.0.0 or higher includes breaking changes. HOT 13
- Does changing language make the public folder innacessible?
- Is the project still maintained? HOT 6
- TypeScript error "Could not find a declaration file for module" HOT 2
- An exception occurred when executing the command 'npx astro-i18next generate'
- After I ran the npx astro-i18next generate command, my .tsx file and .scss file are missing!
- error when using astro-i18next Trans component HOT 9
- Cannot read properties of undefined (reading 'map') in LanguageSelector component. HOT 1
- How to get current language in astro-i18next? HOT 2
- Is there any way to ignore specific page being generated?
- please support cloudflare HOT 2
- Noob question but, how to make this work with a collection? HOT 1
- Ignore 404.astro when run `npx astro-i18next generate` HOT 1
- Working with markdown pages (.md) HOT 4
- Can you interpolate dynamic values with the Trans component?
- Modify LanguageSelector HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astro-i18next.