i18next: webpack2 - v3.5.x breaks `.use()` method
After upgrading from v3.4.4 to v3.5.0, I am no longer able to run:
import i18next from 'i18next';
import LngDetector from 'i18next-browser-languagedetector';
i18next.use(LngDetector);
Which now returns:
main.js:90 Uncaught TypeError: _i18next2.default.use is not a function
Printing out i18next
indeed shows that the default export method no longer has the use
method exposed.
This does not occur on v3.4.4.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 31 (17 by maintainers)
Ugh, it seems like I didn’t
npm prune
and it was picking up the old version. I have 4.0.0 confirmed working as well.