Describe the bug
./src/containers/App/index.tsx
Module not found: Can't resolve 'react-i18next' in '/Users/mattscheurich/Dev/react-app/src/containers/App'
Occurs in react-i18next version
10.0.0
To Reproduce
Steps to reproduce the behavior:
npm i react-i18next --saveimport { useTranslation } from "react-i18next"; in any file (note: I'm using CRA+TS)npm run startExpected behaviour
I'd expect it to import react-i18next!
I wonder if because I'm using CRA and don't want to eject react-scripts that I need to use ES5-compatible code. If there's no dist folder in the node_modules/react-i18next package that the package.json's main file refers to.
Screenshots

OS (please complete the following information):
Additional context
I noticed that v10 was released just this morning! 馃帀 Do I get to claim "first issue" for v10?
Just made an install...got those files around

also:
https://unpkg.com/[email protected]/dist/commonjs/index.js
https://unpkg.com/[email protected]/dist/es/index.js
same error here. Just created a dummy project with npx create-react-app my-app2 --typescript, added i18next and react-i18next dependencies. Here is what I get (screenshots):


Libs:
"react-i18next": "^10.0.0",
"react": "^16.8.1",
"react-dom": "^16.8.1",
"i18next": "^14.0.1",
I've deleted and reinstalled, seems to be back.
It was really strange because I removed my node_modules folder twice and attempted to reinstall everything twice, and this time I just deleted the single folder and reinstalled.
@SekibOmazic Imports should be just react-i18next. No need to use react-i18next/hooks in v10
I can confirm that changing the imports from react-i18next/hooks to react-i18next works. I guess the hooks.js should be simply removed from the distribution as it broken and no longer needed.
@bikeshedder hooks.js will be removed in the next version - forgotten todo so.
@panjiesw Yes! Thanks for the hint!
Most helpful comment
@SekibOmazic Imports should be just
react-i18next. No need to usereact-i18next/hooksin v10