Comments (9)
nope...gave an answer there...not having react as dependency will not cause this.
from react-i18next.
I have the same problem :/
Uncaught Error: Cannot find module 'react'
ReactDOM.render(
<I18nextProvider i18n={i18n}>
<Provider store={store}>
<Router history={browserHistory}>
<Route path="/" component={App}>
<IndexRoute component={Login} />
<Route path="/home" component={Nav}>
<Route path="/customers" component={CustomersList}>
<Route path=":customerId" component={CustomersDetail} />
</Route>
</Route>
</Route>
</Router>
</Provider>
</I18nextProvider>,
document.querySelector('.react-root')
);
from react-i18next.
http://stackoverflow.com/questions/35368799/react-i18n-redux-and-react-router-configuration
that's why you need to import react on your module...simple as that.
from react-i18next.
I did'nt copy paste all my file. I already import the React module. All works, except when I use I18nextProvider.
from react-i18next.
hm...then i'm wondering...can't reproduce. we neither have this in our production applications nor in the example inside this repo...
would be glad if you could further investigate...
from react-i18next.
are you using this with meteor? if so i just got a interesting hint from @mjmasn here i18next/i18next#570 (comment)
from react-i18next.
I found the solution ! My fault :/
I used import { I18nextProvider } from 'react-i18next';
instead of import { I18nextProvider } from 'react-i18next/lib';
with my webpack config.
from react-i18next.
i see...hm. just thought about changing package.json main to point there...makes live more easy for the ones using a modern build chain - which hopefully are more then building some strange stuff using amd.
from react-i18next.
starting with v1.0.0 package.json will point to /lib/index.js
from react-i18next.
Related Issues (20)
- shouldUnescape prop to <Trans> tag doesn't escape all HTML entities HOT 1
- Autocomplete and Validation Not Working with t Function HOT 3
- TypeScript and i18nIsDynamicList Property in Trans Component HOT 1
- Change language after mount does not re-render components HOT 4
- Error: async/await is not yet supported in Client Components, only Server Components when translating parent client component and child server component in Next.js. HOT 6
- Importing i18n file or using it in I18NextProvider in react native causes error HOT 10
- `Trans` component does not change the language inside `observer` from `mobx-react-lite` HOT 6
- Is there a way to detect missing interpolation in build-time? HOT 1
- Utility to find unused translation strings HOT 3
- String cutoff from the middle HOT 4
- Type instantiation is excessively deep and possibly infinite. HOT 5
- Trans component does not respect children w/ apostrophes in nested tags HOT 4
- Changing the language doesn't change the text in react native HOT 5
- Interpolation of the `count` prop doesn't work correctly in the Trans component HOT 2
- Subscribe to onLanguageChange event? HOT 2
- Incorrect call of Backend plugin 'read' method if ns is specified not in useTranslation parameter HOT 5
- [REACT NATIVE] i18n prevents page rendering when I use async-storage HOT 1
- language is not set during tests with vitest HOT 3
- NextJS App Router - avoid prop drilling HOT 3
- vite + vercel "you will need to pass in an i18next instance by using initReactI18next" HOT 2
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 react-i18next.