Closed ddolcimascolo closed 2 years ago
@gunters63 can you also check this please?
Reproduction added, though it's really just importing the module :sweat:
The new types entry which fixed issue #266 should be moved to the start of its export entry. The default entry should always be last, as the error says.
v6.1.8 should fix this
🐛 Bug Report
v6.1.7 breaks CRA production build with
Module not found: Error: Default condition should be last one
. Dev server is broken too with the same errorTo Reproduce
npx create-react-app i18next-browser-languagedetector-6.1.7 cd i18next-browser-languagedetector-6.1.7/ npm i --save -E i18next-browser-languagedetector@6.1.7
Just import the module anywhere
npm run build
Expected behavior
Build succeeds
Your Environment